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

Unified Diff: chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc

Issue 439713003: Drop prefixes from test data resource IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc
index 64187b67607dfe50de5c5633991594f5c72e7811..0d2e6ca6209377be4f110f8162342c263ac514df 100644
--- a/chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc
@@ -126,8 +126,8 @@ TEST_F(CopyOperationTest,
// matches "drive/root/Document 1 excludeDir-test".
ASSERT_TRUE(util::CreateGDocFile(
local_src_path,
- GURL("https://3_document_self_link/document:5_document_resource_id"),
- "document:5_document_resource_id"));
+ GURL("https://3_document_self_link/5_document_resource_id"),
+ "5_document_resource_id"));
ResourceEntry entry;
ASSERT_EQ(FILE_ERROR_NOT_FOUND,
@@ -147,7 +147,7 @@ TEST_F(CopyOperationTest,
EXPECT_EQ(1U, delegate()->get_changed_files().size());
EXPECT_TRUE(delegate()->get_changed_files().count(remote_dest_path));
// New copy is created.
- EXPECT_NE("document:5_document_resource_id", entry.resource_id());
+ EXPECT_NE("5_document_resource_id", entry.resource_id());
}
TEST_F(CopyOperationTest, TransferFileFromLocalToRemote_OrphanHostedDocument) {
@@ -159,8 +159,8 @@ TEST_F(CopyOperationTest, TransferFileFromLocalToRemote_OrphanHostedDocument) {
// matches "drive/other/Orphan Document".
ASSERT_TRUE(util::CreateGDocFile(
local_src_path,
- GURL("https://3_document_self_link/document:orphan_doc_1"),
- "document:orphan_doc_1"));
+ GURL("https://3_document_self_link/orphan_doc_1"),
+ "orphan_doc_1"));
ResourceEntry entry;
ASSERT_EQ(FILE_ERROR_NOT_FOUND,
@@ -182,7 +182,7 @@ TEST_F(CopyOperationTest, TransferFileFromLocalToRemote_OrphanHostedDocument) {
EXPECT_EQ(1U, delegate()->get_changed_files().size());
EXPECT_TRUE(delegate()->get_changed_files().count(remote_dest_path));
// The original document got new parent.
- EXPECT_EQ("document:orphan_doc_1", entry.resource_id());
+ EXPECT_EQ("orphan_doc_1", entry.resource_id());
}
TEST_F(CopyOperationTest, TransferFileFromLocalToRemote_NewHostedDocument) {
« no previous file with comments | « chrome/browser/chromeos/drive/file_cache_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698