| OLD | NEW |
| 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 <map> | 5 #include <map> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 override { | 203 override { |
| 204 *output = outputs_[section]; | 204 *output = outputs_[section]; |
| 205 } | 205 } |
| 206 | 206 |
| 207 virtual base::string16 GetCvc() override { return base::string16(); } | 207 virtual base::string16 GetCvc() override { return base::string16(); } |
| 208 | 208 |
| 209 virtual bool SaveDetailsLocally() override { | 209 virtual bool SaveDetailsLocally() override { |
| 210 return save_details_locally_checked_; | 210 return save_details_locally_checked_; |
| 211 } | 211 } |
| 212 | 212 |
| 213 virtual const content::NavigationController* ShowSignIn() override { | 213 virtual const content::NavigationController* ShowSignIn(const GURL& url) |
| 214 override { |
| 214 return NULL; | 215 return NULL; |
| 215 } | 216 } |
| 216 virtual void HideSignIn() override {} | 217 virtual void HideSignIn() override {} |
| 217 | 218 |
| 218 MOCK_METHOD0(ModelChanged, void()); | 219 MOCK_METHOD0(ModelChanged, void()); |
| 219 MOCK_METHOD0(UpdateForErrors, void()); | 220 MOCK_METHOD0(UpdateForErrors, void()); |
| 220 | 221 |
| 221 virtual void OnSignInResize(const gfx::Size& pref_size) override {} | 222 virtual void OnSignInResize(const gfx::Size& pref_size) override {} |
| 222 virtual void ValidateSection(DialogSection) override {} | 223 virtual void ValidateSection(DialogSection) override {} |
| 223 | 224 |
| (...skipping 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3661 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value); | 3662 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value); |
| 3662 EXPECT_EQ(ADDRESS_HOME_COUNTRY, | 3663 EXPECT_EQ(ADDRESS_HOME_COUNTRY, |
| 3663 form_structure()->field(3)->Type().GetStorableType()); | 3664 form_structure()->field(3)->Type().GetStorableType()); |
| 3664 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value); | 3665 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value); |
| 3665 EXPECT_EQ(ADDRESS_HOME_COUNTRY, | 3666 EXPECT_EQ(ADDRESS_HOME_COUNTRY, |
| 3666 form_structure()->field(4)->Type().GetStorableType()); | 3667 form_structure()->field(4)->Type().GetStorableType()); |
| 3667 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value); | 3668 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value); |
| 3668 } | 3669 } |
| 3669 | 3670 |
| 3670 } // namespace autofill | 3671 } // namespace autofill |
| OLD | NEW |