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

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

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | Annotate | Revision Log
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 "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
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
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_url_generator.cc ('k') | google_apis/drive/drive_common_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698