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 "chrome/browser/google_apis/drive_api_url_generator.h" | 5 #include "google_apis/drive/drive_api_url_generator.h" |
6 | 6 |
7 #include "chrome/browser/google_apis/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 | 10 |
11 namespace google_apis { | 11 namespace google_apis { |
12 | 12 |
13 class DriveApiUrlGeneratorTest : public testing::Test { | 13 class DriveApiUrlGeneratorTest : public testing::Test { |
14 public: | 14 public: |
15 DriveApiUrlGeneratorTest() | 15 DriveApiUrlGeneratorTest() |
16 : url_generator_( | 16 : url_generator_( |
17 GURL(DriveApiUrlGenerator::kBaseUrlForProduction), | 17 GURL(DriveApiUrlGenerator::kBaseUrlForProduction), |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 url_generator_.GenerateDownloadFileUrl("resourceId").spec()); | 368 url_generator_.GenerateDownloadFileUrl("resourceId").spec()); |
369 EXPECT_EQ( | 369 EXPECT_EQ( |
370 "https://www.googledrive.com/host/file%3AresourceId", | 370 "https://www.googledrive.com/host/file%3AresourceId", |
371 url_generator_.GenerateDownloadFileUrl("file:resourceId").spec()); | 371 url_generator_.GenerateDownloadFileUrl("file:resourceId").spec()); |
372 EXPECT_EQ( | 372 EXPECT_EQ( |
373 "http://127.0.0.1:12345/download/resourceId", | 373 "http://127.0.0.1:12345/download/resourceId", |
374 test_url_generator_.GenerateDownloadFileUrl("resourceId").spec()); | 374 test_url_generator_.GenerateDownloadFileUrl("resourceId").spec()); |
375 } | 375 } |
376 | 376 |
377 } // namespace google_apis | 377 } // namespace google_apis |
OLD | NEW |