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

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

Issue 101073002: drive: Support offline touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « chrome/browser/chromeos/drive/file_system/touch_operation.cc ('k') | 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/touch_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc
index 3917802ffcb75e23adabe905e0a37cc384166443..9b7c09e951884134a9b64dbd766850542d2f9e52 100644
--- a/chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc
@@ -21,7 +21,6 @@ typedef OperationTestBase TouchOperationTest;
TEST_F(TouchOperationTest, TouchFile) {
TouchOperation operation(blocking_task_runner(),
observer(),
- scheduler(),
metadata());
const base::FilePath kTestPath(FILE_PATH_LITERAL("drive/root/File 1.txt"));
@@ -47,6 +46,13 @@ TEST_F(TouchOperationTest, TouchFile) {
base::Time::FromInternalValue(entry.file_info().last_accessed()));
EXPECT_EQ(base::Time::FromUTCExploded(kLastModifiedTime),
base::Time::FromInternalValue(entry.file_info().last_modified()));
+ EXPECT_EQ(ResourceEntry::DIRTY, entry.metadata_edit_state());
+
+ EXPECT_EQ(1U, observer()->get_changed_paths().size());
+ EXPECT_TRUE(observer()->get_changed_paths().count(kTestPath.DirName()));
+
+ EXPECT_EQ(1U, observer()->updated_local_ids().size());
+ EXPECT_TRUE(observer()->updated_local_ids().count(entry.local_id()));
}
} // namespace file_system
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/touch_operation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698