Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: content/browser/indexed_db/indexed_db_unittest.cc

Issue 1832553002: IndexedDB: Pass url::Origin rather than GURL over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-wdb
Patch Set: Rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
index 68891d9e2b6e007ea3f8b219efae231f54177fe4..b27080389bfe75903d684cfc1bcc544f1ac756df 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -24,6 +24,7 @@
#include "storage/browser/quota/quota_manager.h"
#include "storage/browser/quota/special_storage_policy.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "url/origin.h"
namespace content {
@@ -194,20 +195,16 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
0 /* child_process_id */,
0 /* host_transaction_id */,
0 /* version */);
- factory->Open(base::ASCIIToUTF16("opendb"),
- open_connection,
- NULL /* request_context */,
- kTestOrigin,
+ factory->Open(base::ASCIIToUTF16("opendb"), open_connection,
+ NULL /* request_context */, url::Origin(kTestOrigin),
idb_context->data_path());
IndexedDBPendingConnection closed_connection(closed_callbacks,
closed_db_callbacks,
0 /* child_process_id */,
0 /* host_transaction_id */,
0 /* version */);
- factory->Open(base::ASCIIToUTF16("closeddb"),
- closed_connection,
- NULL /* request_context */,
- kTestOrigin,
+ factory->Open(base::ASCIIToUTF16("closeddb"), closed_connection,
+ NULL /* request_context */, url::Origin(kTestOrigin),
idb_context->data_path());
closed_callbacks->connection()->Close();
@@ -273,10 +270,8 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnCommitFailure) {
IndexedDBPendingConnection connection(
callbacks, db_callbacks, 0 /* child_process_id */, transaction_id,
IndexedDBDatabaseMetadata::DEFAULT_VERSION);
- factory->Open(base::ASCIIToUTF16("db"),
- connection,
- NULL /* request_context */,
- kTestOrigin,
+ factory->Open(base::ASCIIToUTF16("db"), connection,
+ NULL /* request_context */, url::Origin(kTestOrigin),
temp_dir.path());
EXPECT_TRUE(callbacks->connection());

Powered by Google App Engine
This is Rietveld 408576698