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

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

Issue 408143014: Rename OperationObserver to OperationDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/remove_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc
index e2b050bebfa84716b731d9fb0201145e5071bf1b..af636c9e9984de7fc4c0542be9e93614e24d65ce 100644
--- a/chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc
@@ -17,7 +17,7 @@ namespace file_system {
typedef OperationTestBase RemoveOperationTest;
TEST_F(RemoveOperationTest, RemoveFile) {
- RemoveOperation operation(blocking_task_runner(), observer(), metadata(),
+ RemoveOperation operation(blocking_task_runner(), delegate(), metadata(),
cache());
base::FilePath nonexisting_file(
@@ -69,18 +69,18 @@ TEST_F(RemoveOperationTest, RemoveFile) {
content::RunAllBlockingPoolTasksUntilIdle();
EXPECT_EQ(FILE_ERROR_NOT_FOUND, error);
- // Verify observer notifications.
- EXPECT_EQ(2U, observer()->get_changed_files().size());
- EXPECT_TRUE(observer()->get_changed_files().count(file_in_root));
- EXPECT_TRUE(observer()->get_changed_files().count(file_in_subdir));
+ // Verify delegate notifications.
+ EXPECT_EQ(2U, delegate()->get_changed_files().size());
+ EXPECT_TRUE(delegate()->get_changed_files().count(file_in_root));
+ EXPECT_TRUE(delegate()->get_changed_files().count(file_in_subdir));
- EXPECT_EQ(2U, observer()->updated_local_ids().size());
- EXPECT_TRUE(observer()->updated_local_ids().count(id_file_in_root));
- EXPECT_TRUE(observer()->updated_local_ids().count(id_file_in_subdir));
+ EXPECT_EQ(2U, delegate()->updated_local_ids().size());
+ EXPECT_TRUE(delegate()->updated_local_ids().count(id_file_in_root));
+ EXPECT_TRUE(delegate()->updated_local_ids().count(id_file_in_subdir));
}
TEST_F(RemoveOperationTest, RemoveDirectory) {
- RemoveOperation operation(blocking_task_runner(), observer(), metadata(),
+ RemoveOperation operation(blocking_task_runner(), delegate(), metadata(),
cache());
base::FilePath empty_dir(FILE_PATH_LITERAL(

Powered by Google App Engine
This is Rietveld 408576698