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

Side by Side Diff: components/autofill/browser/wallet/cart_unittest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 (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 "base/values.h" 5 #include "base/values.h"
6 #include "chrome/browser/autofill/wallet/cart.h" 6 #include "components/autofill/browser/wallet/cart.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 namespace wallet { 10 namespace wallet {
11 11
12 TEST(Cart, ToDictionary) { 12 TEST(Cart, ToDictionary) {
13 base::DictionaryValue expected; 13 base::DictionaryValue expected;
14 expected.SetString("total_price", "total_price"); 14 expected.SetString("total_price", "total_price");
15 expected.SetString("currency_code", "currency_code"); 15 expected.SetString("currency_code", "currency_code");
16 Cart cart("total_price", "currency_code"); 16 Cart cart("total_price", "currency_code");
17 ASSERT_TRUE(expected.Equals(cart.ToDictionary().get())); 17 ASSERT_TRUE(expected.Equals(cart.ToDictionary().get()));
18 } 18 }
19 19
20 } // namespace wallet 20 } // namespace wallet
21 } // namespace autofill 21 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/cart.cc ('k') | components/autofill/browser/wallet/encryption_escrow_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698