| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gdata_wapi_url_generator.h" | 5 #include "google_apis/drive/gdata_wapi_url_generator.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 namespace google_apis { | 10 namespace google_apis { |
| 11 | 11 |
| 12 class GDataWapiUrlGeneratorTest : public testing::Test { | 12 class GDataWapiUrlGeneratorTest : public testing::Test { |
| 13 public: | 13 public: |
| 14 GDataWapiUrlGeneratorTest() | 14 GDataWapiUrlGeneratorTest() |
| 15 : url_generator_( | 15 : url_generator_( |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 url_generator_.GenerateAccountMetadataUrl(false).spec()); | 213 url_generator_.GenerateAccountMetadataUrl(false).spec()); |
| 214 } | 214 } |
| 215 | 215 |
| 216 TEST_F(GDataWapiUrlGeneratorTest, GenerateDownloadFileUrl) { | 216 TEST_F(GDataWapiUrlGeneratorTest, GenerateDownloadFileUrl) { |
| 217 EXPECT_EQ( | 217 EXPECT_EQ( |
| 218 "https://www.googledrive.com/host/resourceId", | 218 "https://www.googledrive.com/host/resourceId", |
| 219 url_generator_.GenerateDownloadFileUrl("file:resourceId").spec()); | 219 url_generator_.GenerateDownloadFileUrl("file:resourceId").spec()); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace google_apis | 222 } // namespace google_apis |
| OLD | NEW |