| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |