Commit 1386d7af authored by hidehiko@chromium.org's avatar hidehiko@chromium.org

Implement new methods other than ContinueGetResourceList for FakeDriveService.

This CL implements five newly introduced methods on FakeDriveService.
The implementation of ContinueGetResourceList, the remaining method, needs
slightly more changes, so it will be done in another CL.
The new methods will be used for testing of replacing GetResourceList method.

BUG=160932
TEST=Ran unit_tests --gtest_filter=FakeDriveService*


Review URL: https://chromiumcodereview.appspot.com/13608006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192544 0039d316-1c4b-4281-b951-d872f2087c98
parent 965bcb00
......@@ -340,8 +340,11 @@ void FakeDriveService::GetAllResourceList(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
// TODO(hidehiko): Implement this.
NOTIMPLEMENTED();
GetResourceList(GURL(), // no next feed
0, // start changestamp
"", // empty search query
"", // no directory resource id,
callback);
}
void FakeDriveService::GetResourceListInDirectory(
......@@ -351,8 +354,11 @@ void FakeDriveService::GetResourceListInDirectory(
DCHECK(!directory_resource_id.empty());
DCHECK(!callback.is_null());
// TODO(hidehiko): Implement this.
NOTIMPLEMENTED();
GetResourceList(GURL(), // no next feed
0, // start changestamp
"", // empty search query
directory_resource_id,
callback);
}
void FakeDriveService::Search(const std::string& search_query,
......@@ -361,8 +367,11 @@ void FakeDriveService::Search(const std::string& search_query,
DCHECK(!search_query.empty());
DCHECK(!callback.is_null());
// TODO(hidehiko): Implement this.
NOTIMPLEMENTED();
GetResourceList(GURL(), // no next feed
0, // start changestamp
search_query,
"", // no directory resource id,
callback);
}
void FakeDriveService::SearchInDirectory(
......@@ -374,8 +383,11 @@ void FakeDriveService::SearchInDirectory(
DCHECK(!directory_resource_id.empty());
DCHECK(!callback.is_null());
// TODO(hidehiko): Implement this.
NOTIMPLEMENTED();
GetResourceList(GURL(), // no next feed
0, // start changestamp
search_query,
directory_resource_id,
callback);
}
void FakeDriveService::GetChangeList(int64 start_changestamp,
......@@ -383,8 +395,11 @@ void FakeDriveService::GetChangeList(int64 start_changestamp,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
// TODO(hidehiko): Implement this.
NOTIMPLEMENTED();
GetResourceList(GURL(), // no next feed
start_changestamp,
"", // empty search query
"", // no directory resource id,
callback);
}
void FakeDriveService::ContinueGetResourceList(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment