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

Unified Diff: chrome/browser/sync_file_system/drive_metadata_store_unittest.cc

Issue 11411280: Sync FileSystem: Use app id part of the URL for its directory title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testfix Created 8 years 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: chrome/browser/sync_file_system/drive_metadata_store_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_metadata_store_unittest.cc b/chrome/browser/sync_file_system/drive_metadata_store_unittest.cc
index 6203c986958d40e6bb2986830f9b2d96ceaf2208..7ad6caea8972f8b1a7bea8a7f96c4f34a9876c21 100644
--- a/chrome/browser/sync_file_system/drive_metadata_store_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_metadata_store_unittest.cc
@@ -26,7 +26,7 @@ namespace sync_file_system {
namespace {
-const char kOrigin[] = "http://www.example.com";
+const char kOrigin[] = "chrome-extension://example";
const char* const kServiceName = DriveFileSyncService::kServiceName;
typedef DriveMetadataStore::ResourceIDMap ResourceIDMap;
@@ -312,8 +312,8 @@ TEST_F(DriveMetadataStoreTest, StoreSyncRootDirectory) {
}
TEST_F(DriveMetadataStoreTest, StoreSyncOrigin) {
- const GURL kOrigin1("http://www1.example.com");
- const GURL kOrigin2("http://www2.example.com");
+ const GURL kOrigin1("chrome-extension://example1");
+ const GURL kOrigin2("chrome-extension://example2");
const std::string kResourceID1("hoge");
const std::string kResourceID2("fuga");
@@ -371,10 +371,10 @@ TEST_F(DriveMetadataStoreTest, StoreSyncOrigin) {
}
TEST_F(DriveMetadataStoreTest, RemoveOrigin) {
- const GURL kOrigin1("http://hoge.example.com");
- const GURL kOrigin2("http://fuga.example.net");
- const GURL kOrigin3("http://piyo.example.net");
- const GURL kOrigin4("http://mogo.example.net");
+ const GURL kOrigin1("chrome-extension://example1");
+ const GURL kOrigin2("chrome-extension://example2");
+ const GURL kOrigin3("chrome-extension://example3");
+ const GURL kOrigin4("chrome-extension://example4");
const std::string kResourceId1("hogera");
const std::string kResourceId2("fugaga");
const std::string kResourceId3("piyopiyo");
@@ -432,8 +432,8 @@ TEST_F(DriveMetadataStoreTest, RemoveOrigin) {
}
TEST_F(DriveMetadataStoreTest, GetResourceIdForOrigin) {
- const GURL kOrigin1("http://hoge.example.com");
- const GURL kOrigin2("http://fuga.example.net");
+ const GURL kOrigin1("chrome-extension://example1");
+ const GURL kOrigin2("chrome-extension://example2");
const std::string kResourceId1("hogera");
const std::string kResourceId2("fugaga");

Powered by Google App Engine
This is Rietveld 408576698