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

Side by Side Diff: components/autofill/browser/wallet/wallet_items_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/json/json_reader.h" 5 #include "base/json/json_reader.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/autofill/wallet/required_action.h" 10 #include "components/autofill/browser/wallet/required_action.h"
11 #include "chrome/browser/autofill/wallet/wallet_items.h" 11 #include "components/autofill/browser/wallet/wallet_items.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 const char kMaskedInstrument[] = 17 const char kMaskedInstrument[] =
18 "{" 18 "{"
19 " \"descriptive_name\":\"descriptive_name\"," 19 " \"descriptive_name\":\"descriptive_name\","
20 " \"type\":\"VISA\"," 20 " \"type\":\"VISA\","
21 " \"supported_currency\":" 21 " \"supported_currency\":"
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 scoped_ptr<WalletItems::LegalDocument> legal_document( 534 scoped_ptr<WalletItems::LegalDocument> legal_document(
535 new WalletItems::LegalDocument("doc_id", 535 new WalletItems::LegalDocument("doc_id",
536 "display_name")); 536 "display_name"));
537 expected.AddLegalDocument(legal_document.Pass()); 537 expected.AddLegalDocument(legal_document.Pass());
538 538
539 EXPECT_EQ(expected, *WalletItems::CreateWalletItems(*dict)); 539 EXPECT_EQ(expected, *WalletItems::CreateWalletItems(*dict));
540 } 540 }
541 541
542 } // namespace wallet 542 } // namespace wallet
543 } // namespace autofill 543 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/wallet_items.cc ('k') | components/autofill/browser/wallet/wallet_service_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698