OLD | NEW |
---|---|
(Empty) | |
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" | |
6 #include "chrome/browser/autofill/wallet/cart.h" | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 namespace wallet { | |
Dan Beam
2012/11/30 19:55:52
nit: do we usually namespace tests?
ahutter
2012/12/01 04:06:51
+abodenha, do you know?
| |
10 | |
11 TEST(Cart, ToDictionary) { | |
12 base::DictionaryValue expected; | |
13 expected.SetString("total_price", "total_price"); | |
14 expected.SetString("currency_code", "currency_code"); | |
15 Cart cart("total_price", "currency_code"); | |
16 ASSERT_TRUE(expected.Equals(cart.ToDictionary().get())); | |
17 } | |
18 | |
19 } // end wallet namespace | |
OLD | NEW |