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

Side by Side Diff: google_apis/drive/drive_api_url_generator_unittest.cc

Issue 1081313002: Drive: Add response handling to BatchUploadRequst class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error on windows. 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 unified diff | Download patch
« no previous file with comments | « google_apis/drive/drive_api_requests_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/drive/drive_api_url_generator.h" 5 #include "google_apis/drive/drive_api_url_generator.h"
6 6
7 #include "google_apis/drive/test_util.h" 7 #include "google_apis/drive/test_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 #include "url/url_util.h" 10 #include "url/url_util.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 url_generator_.GetPermissionsInsertUrl("0ADK06pfg").spec()); 357 url_generator_.GetPermissionsInsertUrl("0ADK06pfg").spec());
358 } 358 }
359 359
360 TEST_F(DriveApiUrlGeneratorTest, GenerateThumbnailUrl) { 360 TEST_F(DriveApiUrlGeneratorTest, GenerateThumbnailUrl) {
361 EXPECT_EQ( 361 EXPECT_EQ(
362 "https://download.example.com/p/thumb/0ADK06pfg?width=500&height=500", 362 "https://download.example.com/p/thumb/0ADK06pfg?width=500&height=500",
363 url_generator_.GetThumbnailUrl("0ADK06pfg", 500, 500).spec()); 363 url_generator_.GetThumbnailUrl("0ADK06pfg", 500, 500).spec());
364 } 364 }
365 365
366 TEST_F(DriveApiUrlGeneratorTest, BatchUploadUrl) { 366 TEST_F(DriveApiUrlGeneratorTest, BatchUploadUrl) {
367 EXPECT_EQ( 367 EXPECT_EQ("https://www.example.com/upload/drive",
368 "https://www.example.com/upload/drive", 368 url_generator_.GetBatchUploadUrl().spec());
369 url_generator_.GetBatchUploadUrl().spec());
370 } 369 }
371 370
372 } // namespace google_apis 371 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698