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

Unified Diff: chrome/browser/chromeos/extensions/external_filesystem_apitest.cc

Issue 11530004: google_apis: DriveServiceInterface::GetResourceEntry() returns ResourceEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
Index: chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
diff --git a/chrome/browser/chromeos/extensions/external_filesystem_apitest.cc b/chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
index f0ca090a97c677ddeff65749d7543c0007913dea..2372a7820179d0dc43bb78f94ff296b6ea5bedaa 100644
--- a/chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
+++ b/chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
@@ -403,12 +403,14 @@ IN_PROC_BROWSER_TEST_F(RemoteFileSystemExtensionApiTest,
// Later in the test, file handler will try to open the same file on gdata
// mount point. This time, DownloadFile should not be called because local
// copy is already present in the cache.
- scoped_ptr<base::Value> document_to_download_value(
+ scoped_ptr<base::Value> file_to_download_value(
LoadJSONFile(kTestDocumentToDownloadEntry));
+ scoped_ptr<google_apis::ResourceEntry> file_to_download(
+ google_apis::ResourceEntry::ExtractAndParse(*file_to_download_value));
EXPECT_CALL(*mock_drive_service_,
GetResourceEntry("file:1_file_resource_id", _))
.WillOnce(MockGetResourceEntryCallback(google_apis::HTTP_SUCCESS,
- &document_to_download_value));
+ &file_to_download));
// We expect to download url defined in document entry returned by
// GetResourceEntry mock implementation.
@@ -467,12 +469,14 @@ IN_PROC_BROWSER_TEST_F(RemoteFileSystemExtensionApiTest, ContentSearch) {
&second_search_list));
// Test will try to create a snapshot of the returned file.
- scoped_ptr<base::Value> document_to_download_value(
+ scoped_ptr<base::Value> file_to_download_value(
LoadJSONFile(kTestDocumentToDownloadEntry));
+ scoped_ptr<google_apis::ResourceEntry> file_to_download(
+ google_apis::ResourceEntry::ExtractAndParse(*file_to_download_value));
EXPECT_CALL(*mock_drive_service_,
GetResourceEntry("file:1_file_resource_id", _))
.WillOnce(MockGetResourceEntryCallback(google_apis::HTTP_SUCCESS,
- &document_to_download_value));
+ &file_to_download));
// We expect to download url defined in document entry returned by
// GetResourceEntry mock implementation.
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler_unittest.cc ('k') | chrome/browser/google_apis/drive_service_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698