| 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..13e98d4e4e38849be12d2ac5b40136856e714da8
|
| --- /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()));
|
| +}
|
| +
|
| +} // end wallet namespace
|
| +
|
|
|