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

Unified Diff: google_apis/drive/drive_api_requests_unittest.cc

Issue 1125123008: Files.app: Use quotaBytesUsedAggregate to know the actual available space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « google_apis/drive/drive_api_parser_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_requests_unittest.cc
diff --git a/google_apis/drive/drive_api_requests_unittest.cc b/google_apis/drive/drive_api_requests_unittest.cc
index d83292e988f9cdfd1ccc4de9ecf46857b78598ed..2932250ed0a102cafec9ad21274b3120fac77f70 100644
--- a/google_apis/drive/drive_api_requests_unittest.cc
+++ b/google_apis/drive/drive_api_requests_unittest.cc
@@ -459,8 +459,8 @@ TEST_F(DriveApiRequestsTest, DriveApiDataRequest_Fields) {
test_util::CreateQuitCallback(
&run_loop,
test_util::CreateCopyResultCallback(&error, &about_resource)));
- request->set_fields(
- "kind,quotaBytesTotal,quotaBytesUsed,largestChangeId,rootFolderId");
+ request->set_fields("kind,quotaBytesTotal,quotaBytesUsedAggregate,"
+ "largestChangeId,rootFolderId");
request_sender_->StartRequestWithRetry(request);
run_loop.Run();
}
@@ -468,7 +468,7 @@ TEST_F(DriveApiRequestsTest, DriveApiDataRequest_Fields) {
EXPECT_EQ(HTTP_SUCCESS, error);
EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
EXPECT_EQ("/drive/v2/about?"
- "fields=kind%2CquotaBytesTotal%2CquotaBytesUsed%2C"
+ "fields=kind%2CquotaBytesTotal%2CquotaBytesUsedAggregate%2C"
"largestChangeId%2CrootFolderId",
http_request_.relative_url);
@@ -478,7 +478,8 @@ TEST_F(DriveApiRequestsTest, DriveApiDataRequest_Fields) {
ASSERT_TRUE(about_resource.get());
EXPECT_EQ(expected->largest_change_id(), about_resource->largest_change_id());
EXPECT_EQ(expected->quota_bytes_total(), about_resource->quota_bytes_total());
- EXPECT_EQ(expected->quota_bytes_used(), about_resource->quota_bytes_used());
+ EXPECT_EQ(expected->quota_bytes_used_aggregate(),
+ about_resource->quota_bytes_used_aggregate());
EXPECT_EQ(expected->root_folder_id(), about_resource->root_folder_id());
}
@@ -629,7 +630,8 @@ TEST_F(DriveApiRequestsTest, AboutGetRequest_ValidJson) {
ASSERT_TRUE(about_resource.get());
EXPECT_EQ(expected->largest_change_id(), about_resource->largest_change_id());
EXPECT_EQ(expected->quota_bytes_total(), about_resource->quota_bytes_total());
- EXPECT_EQ(expected->quota_bytes_used(), about_resource->quota_bytes_used());
+ EXPECT_EQ(expected->quota_bytes_used_aggregate(),
+ about_resource->quota_bytes_used_aggregate());
EXPECT_EQ(expected->root_folder_id(), about_resource->root_folder_id());
}
« no previous file with comments | « google_apis/drive/drive_api_parser_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698