summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_apis/test_util.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 03:10:12 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 03:10:12 +0000
commitf38631eec4a7d59902b56ee4ff4df8b0270cff49 (patch)
treed662f72823746a03a5266a02c6daeb3b969be632 /chrome/browser/google_apis/test_util.h
parente13d9a13e1a34a36c8f03b164cfe1818da2ddbff (diff)
downloadchromium_src-f38631eec4a7d59902b56ee4ff4df8b0270cff49.zip
chromium_src-f38631eec4a7d59902b56ee4ff4df8b0270cff49.tar.gz
chromium_src-f38631eec4a7d59902b56ee4ff4df8b0270cff49.tar.bz2
google_apis:: DriveServiceInterface::GetAccountMetadata() returns AccountMetadataFeed
This way, client code doesn't have to convert base::Value to AccountMetadata Note that the expectation in StaleCacheFilesRemoverTest.RemoveStaleCacheFiles is updated. Previously, the mock version of GetAccountMetadata() returned an empty base::Value from the 2nd call, which was a bug. With this change, GetAccountMetadata always returns a valid value to the caller. BUG=165387 TEST=go to chrome:drive-internals and account metadata is shown Review URL: https://codereview.chromium.org/11543014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/test_util.h')
-rw-r--r--chrome/browser/google_apis/test_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/google_apis/test_util.h b/chrome/browser/google_apis/test_util.h
index 7f57351..86154ce 100644
--- a/chrome/browser/google_apis/test_util.h
+++ b/chrome/browser/google_apis/test_util.h
@@ -18,6 +18,7 @@ class Value;
namespace google_apis {
+class AccountMetadataFeed;
class ResourceList;
namespace test_util {
@@ -52,6 +53,13 @@ void CopyResultsFromGetResourceListCallback(
GDataErrorCode error_in,
scoped_ptr<ResourceList> resource_list_in);
+// Copies the results from GetAccountMetadataCallback.
+void CopyResultsFromGetAccountMetadataCallback(
+ GDataErrorCode* error_out,
+ scoped_ptr<AccountMetadataFeed>* account_metadata_out,
+ GDataErrorCode error_in,
+ scoped_ptr<AccountMetadataFeed> account_metadata_in);
+
} // namespace test_util
} // namespace google_apis