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

Unified Diff: google_apis/drive/gdata_wapi_url_generator_unittest.cc

Issue 861133002: Remove WAPI-related code, except the type definition of ResourceEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/drive/gdata_wapi_url_generator.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/gdata_wapi_url_generator_unittest.cc
diff --git a/google_apis/drive/gdata_wapi_url_generator_unittest.cc b/google_apis/drive/gdata_wapi_url_generator_unittest.cc
deleted file mode 100644
index 0ac8508d774fd9e7ea056d53fd3d27f86618c8be..0000000000000000000000000000000000000000
--- a/google_apis/drive/gdata_wapi_url_generator_unittest.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "google_apis/drive/gdata_wapi_url_generator.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "url/gurl.h"
-#include "url/url_util.h"
-
-namespace google_apis {
-
-class GDataWapiUrlGeneratorTest : public testing::Test {
- public:
- GDataWapiUrlGeneratorTest()
- : url_generator_(
- GURL(GDataWapiUrlGenerator::kBaseUrlForProduction)) {
- }
-
- protected:
- GDataWapiUrlGenerator url_generator_;
-};
-
-TEST_F(GDataWapiUrlGeneratorTest, AddStandardUrlParams) {
- EXPECT_EQ("http://www.example.com/?v=3&alt=json&showroot=true",
- GDataWapiUrlGenerator::AddStandardUrlParams(
- GURL("http://www.example.com")).spec());
-}
-
-TEST_F(GDataWapiUrlGeneratorTest, GenerateEditUrl) {
- EXPECT_EQ(
- "https://docs.google.com/feeds/default/private/full/XXX?v=3&alt=json"
- "&showroot=true",
- url_generator_.GenerateEditUrl("XXX").spec());
-}
-
-TEST_F(GDataWapiUrlGeneratorTest, GenerateEditUrlWithoutParams) {
- EXPECT_EQ(
- "https://docs.google.com/feeds/default/private/full/XXX",
- url_generator_.GenerateEditUrlWithoutParams("XXX").spec());
-}
-
-TEST_F(GDataWapiUrlGeneratorTest, GenerateEditUrlWithEmbedOrigin) {
- url::AddStandardScheme("chrome-extension");
-
- EXPECT_EQ(
- "https://docs.google.com/feeds/default/private/full/XXX?v=3&alt=json"
- "&showroot=true&embedOrigin=chrome-extension%3A%2F%2Ftest",
- url_generator_.GenerateEditUrlWithEmbedOrigin(
- "XXX",
- GURL("chrome-extension://test")).spec());
- EXPECT_EQ(
- "https://docs.google.com/feeds/default/private/full/XXX?v=3&alt=json"
- "&showroot=true",
- url_generator_.GenerateEditUrlWithEmbedOrigin(
- "XXX",
- GURL()).spec());
-}
-
-} // namespace google_apis
« no previous file with comments | « google_apis/drive/gdata_wapi_url_generator.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698