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

Side by Side Diff: trunk/src/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc

Issue 387123004: Revert 282726 "Reland "Use upstream libaddressinput in Chrome."" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #endif 74 #endif
75 75
76 using base::ASCIIToUTF16; 76 using base::ASCIIToUTF16;
77 77
78 namespace autofill { 78 namespace autofill {
79 79
80 namespace { 80 namespace {
81 81
82 using testing::Return; 82 using testing::Return;
83 using testing::_; 83 using testing::_;
84 using ::i18n::addressinput::AddressValidator;
84 85
85 void MockCallback(AutofillClient::RequestAutocompleteResult, 86 void MockCallback(AutofillClient::RequestAutocompleteResult,
86 const base::string16& message, 87 const base::string16& message,
87 const FormStructure*) { 88 const FormStructure*) {
88 } 89 }
89 90
90 class MockAutofillMetrics : public AutofillMetrics { 91 class MockAutofillMetrics : public AutofillMetrics {
91 public: 92 public:
92 MockAutofillMetrics() 93 MockAutofillMetrics()
93 : dialog_dismissal_action_(static_cast<DialogDismissalAction>(-1)) {} 94 : dialog_dismissal_action_(static_cast<DialogDismissalAction>(-1)) {}
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 "<input autocomplete='transaction-currency' value='USD'>" 1768 "<input autocomplete='transaction-currency' value='USD'>"
1768 "<input autocomplete='cc-csc'>"); 1769 "<input autocomplete='cc-csc'>");
1769 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html); 1770 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html);
1770 ASSERT_TRUE(controller); 1771 ASSERT_TRUE(controller);
1771 1772
1772 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_); 1773 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_);
1773 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_); 1774 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_);
1774 } 1775 }
1775 1776
1776 } // namespace autofill 1777 } // namespace autofill
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/ui/autofill/DEPS ('k') | trunk/src/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698