[email protected] | ce63d6b | 2012-12-20 02:46:28 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "base/values.h" | ||||
[email protected] | e4b2fa3 | 2013-03-09 22:56:56 | [diff] [blame] | 6 | #include "components/autofill/browser/wallet/cart.h" |
[email protected] | ce63d6b | 2012-12-20 02:46:28 | [diff] [blame] | 7 | #include "testing/gtest/include/gtest/gtest.h" |
8 | |||||
[email protected] | 34517564 | 2013-02-20 19:25:52 | [diff] [blame] | 9 | namespace autofill { |
[email protected] | ce63d6b | 2012-12-20 02:46:28 | [diff] [blame] | 10 | namespace wallet { |
11 | |||||
12 | TEST(Cart, ToDictionary) { | ||||
13 | base::DictionaryValue expected; | ||||
14 | expected.SetString("total_price", "total_price"); | ||||
15 | expected.SetString("currency_code", "currency_code"); | ||||
16 | Cart cart("total_price", "currency_code"); | ||||
17 | ASSERT_TRUE(expected.Equals(cart.ToDictionary().get())); | ||||
18 | } | ||||
19 | |||||
20 | } // namespace wallet | ||||
[email protected] | 34517564 | 2013-02-20 19:25:52 | [diff] [blame] | 21 | } // namespace autofill |