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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc

Issue 10386226: gdata: Add requestDirectoryRefresh to file_browser_private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dcheck failures Created 8 years, 7 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
index 55afd6e9964fb8e82221bfa16a54099911776037..ab051c20d8131eaa72ba0514d343bc224d6d13a2 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
@@ -3663,4 +3663,17 @@ TEST_F(GDataFileSystemTest, MountUnmount) {
EXPECT_EQ(1, num_callback_invocations_);
}
+TEST_F(GDataFileSystemTest, RequestDirectoryRefresh) {
+ // We'll fetch documents in the root directory with its resource ID.
+ EXPECT_CALL(*mock_doc_service_,
+ GetDocuments(Eq(GURL()), _, _, kGDataRootDirectoryResourceId, _))
+ .Times(1);
+ // We'll notify the directory change to the observer.
+ EXPECT_CALL(*mock_directory_observer_,
+ OnDirectoryChanged(Eq(FilePath(kGDataRootDirectory)))).Times(1);
+
+ file_system_->RequestDirectoryRefresh(FilePath(kGDataRootDirectory));
+ message_loop_.RunAllPending();
+}
+
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698