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

Unified Diff: chrome/browser/chromeos/drive/file_system_unittest.cc

Issue 305913002: drive: Replace GetResourceListCallback in DriveServiceInterface with FileListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/drive/fake_file_system.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system_unittest.cc b/chrome/browser/chromeos/drive/file_system_unittest.cc
index 84b724de2fe95322cd00f8fc4b84df1a3a2dd198..b0f8aa8b45c2d689abf7d4214b9dec26ab0ddf64 100644
--- a/chrome/browser/chromeos/drive/file_system_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system_unittest.cc
@@ -543,7 +543,7 @@ TEST_F(FileSystemTest, DuplicatedAsyncInitialization) {
loop.Run(); // Wait to get our result
EXPECT_EQ(2, counter);
- EXPECT_EQ(1, fake_drive_service_->resource_list_load_count());
+ EXPECT_EQ(1, fake_drive_service_->file_list_load_count());
}
TEST_F(FileSystemTest, GetGrandRootEntry) {
@@ -567,13 +567,13 @@ TEST_F(FileSystemTest, GetMyDriveRoot) {
EXPECT_EQ(fake_drive_service_->GetRootResourceId(), entry->resource_id());
// After "fast fetch" is done, full resource list is fetched.
- EXPECT_EQ(1, fake_drive_service_->resource_list_load_count());
+ EXPECT_EQ(1, fake_drive_service_->file_list_load_count());
}
TEST_F(FileSystemTest, GetExistingFile) {
// Simulate the situation that full feed fetching takes very long time,
// to test the recursive "fast fetch" feature is properly working.
- fake_drive_service_->set_never_return_all_resource_list(true);
+ fake_drive_service_->set_never_return_all_file_list(true);
const base::FilePath kFilePath(
FILE_PATH_LITERAL("drive/root/Directory 1/SubDirectory File 1.txt"));
@@ -583,7 +583,7 @@ TEST_F(FileSystemTest, GetExistingFile) {
EXPECT_EQ(1, fake_drive_service_->about_resource_load_count());
EXPECT_EQ(2, fake_drive_service_->directory_load_count());
- EXPECT_EQ(1, fake_drive_service_->blocked_resource_list_load_count());
+ EXPECT_EQ(1, fake_drive_service_->blocked_file_list_load_count());
}
TEST_F(FileSystemTest, GetExistingDocument) {
@@ -661,7 +661,7 @@ TEST_F(FileSystemTest, LoadFileSystemFromUpToDateCache) {
// SetUpTestFileSystem and FakeDriveService have the same
// changestamp (i.e. the local metadata is up-to-date), so no request for
// new resource list (i.e., call to GetResourceList) should happen.
- EXPECT_EQ(0, fake_drive_service_->resource_list_load_count());
+ EXPECT_EQ(0, fake_drive_service_->file_list_load_count());
// Since the file system has verified that it holds the latest snapshot,
// it should change its state to "loaded", which admits periodic refresh.
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698