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

Unified Diff: chrome/browser/autofill/wallet/cart_unittest.cc

Issue 11293078: Integrating Online Wallet into Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing HexStringToInt Created 8 years 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 | « chrome/browser/autofill/wallet/cart.cc ('k') | chrome/browser/autofill/wallet/full_wallet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/wallet/cart_unittest.cc
diff --git a/chrome/browser/autofill/wallet/cart_unittest.cc b/chrome/browser/autofill/wallet/cart_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a094913ebd63f1f947c135a3e5027189ff4aaf1a
--- /dev/null
+++ b/chrome/browser/autofill/wallet/cart_unittest.cc
@@ -0,0 +1,20 @@
+// 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 "base/values.h"
+#include "chrome/browser/autofill/wallet/cart.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace wallet {
+
+TEST(Cart, ToDictionary) {
+ base::DictionaryValue expected;
+ expected.SetString("total_price", "total_price");
+ expected.SetString("currency_code", "currency_code");
+ Cart cart("total_price", "currency_code");
+ ASSERT_TRUE(expected.Equals(cart.ToDictionary().get()));
+}
+
+} // namespace wallet
+
« no previous file with comments | « chrome/browser/autofill/wallet/cart.cc ('k') | chrome/browser/autofill/wallet/full_wallet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698