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

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

Issue 100373004: drive: Check OperationObserver::OnEntryUpdatedByOperation is called by MoveOperation in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc
index 956dc0482a9d183d2f077e6f838160ba8d03ec8d..db73187e540f970c4b4909e6bfe343465971c4b1 100644
--- a/chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc
@@ -59,6 +59,9 @@ TEST_F(MoveOperationTest, MoveFileInSameDirectory) {
EXPECT_EQ(1U, observer()->get_changed_paths().size());
EXPECT_TRUE(observer()->get_changed_paths().count(src_path.DirName()));
+
+ EXPECT_EQ(1U, observer()->updated_local_ids().size());
+ EXPECT_TRUE(observer()->updated_local_ids().count(src_entry.local_id()));
}
TEST_F(MoveOperationTest, MoveFileFromRootToSubDirectory) {
@@ -87,6 +90,9 @@ TEST_F(MoveOperationTest, MoveFileFromRootToSubDirectory) {
EXPECT_EQ(2U, observer()->get_changed_paths().size());
EXPECT_TRUE(observer()->get_changed_paths().count(src_path.DirName()));
EXPECT_TRUE(observer()->get_changed_paths().count(dest_path.DirName()));
+
+ EXPECT_EQ(1U, observer()->updated_local_ids().size());
+ EXPECT_TRUE(observer()->updated_local_ids().count(src_entry.local_id()));
}
TEST_F(MoveOperationTest, MoveFileBetweenSubDirectoriesRenameWithTitle) {
@@ -135,6 +141,9 @@ TEST_F(MoveOperationTest, MoveFileBetweenSubDirectoriesRenameWithTitle) {
EXPECT_EQ(2U, observer()->get_changed_paths().size());
EXPECT_TRUE(observer()->get_changed_paths().count(copied_path.DirName()));
EXPECT_TRUE(observer()->get_changed_paths().count(dest_path.DirName()));
+
+ EXPECT_EQ(1U, observer()->updated_local_ids().size());
+ EXPECT_TRUE(observer()->updated_local_ids().count(copied_entry.local_id()));
}
TEST_F(MoveOperationTest, MoveNotExistingFile) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698