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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_service_url_unittest.cc

Issue 16879006: In components/autofill, move common/ to core/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflict Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "components/autofill/common/autofill_switches.h"
7 #include "components/autofill/content/browser/wallet/wallet_service_url.h" 6 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
7 #include "components/autofill/core/common/autofill_switches.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace autofill { 11 namespace autofill {
12 namespace wallet { 12 namespace wallet {
13 13
14 TEST(WalletServiceUrl, CheckDefaultUrls) { 14 TEST(WalletServiceUrl, CheckDefaultUrls) {
15 EXPECT_EQ("https://payments-form-dogfood.sandbox.google.com/online/v2/wallet/" 15 EXPECT_EQ("https://payments-form-dogfood.sandbox.google.com/online/v2/wallet/"
16 "autocheckout/v1/getWalletItemsJwtless", 16 "autocheckout/v1/getWalletItemsJwtless",
17 GetGetWalletItemsUrl().spec()); 17 GetGetWalletItemsUrl().spec());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 const GURL prod_get_items_url = GetGetWalletItemsUrl(); 57 const GURL prod_get_items_url = GetGetWalletItemsUrl();
58 command_line->AppendSwitchASCII(switches::kWalletServiceUrl, "http://goo.gl"); 58 command_line->AppendSwitchASCII(switches::kWalletServiceUrl, "http://goo.gl");
59 EXPECT_FALSE(IsUsingProd()); 59 EXPECT_FALSE(IsUsingProd());
60 60
61 ASSERT_NE(prod_get_items_url, GetGetWalletItemsUrl()); 61 ASSERT_NE(prod_get_items_url, GetGetWalletItemsUrl());
62 } 62 }
63 63
64 } // namespace wallet 64 } // namespace wallet
65 } // namespace autofill 65 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698