| 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 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 class AutofillDialogControllerTest : public testing::Test { | 329 class AutofillDialogControllerTest : public testing::Test { |
| 330 protected: | 330 protected: |
| 331 AutofillDialogControllerTest() | 331 AutofillDialogControllerTest() |
| 332 : form_structure_(NULL) { | 332 : form_structure_(NULL) { |
| 333 } | 333 } |
| 334 | 334 |
| 335 // testing::Test implementation: | 335 // testing::Test implementation: |
| 336 virtual void SetUp() OVERRIDE { | 336 virtual void SetUp() OVERRIDE { |
| 337 profile()->CreateRequestContext(); | |
| 338 test_web_contents_.reset( | 337 test_web_contents_.reset( |
| 339 content::WebContentsTester::CreateTestWebContents(profile(), NULL)); | 338 content::WebContentsTester::CreateTestWebContents(profile(), NULL)); |
| 340 | 339 |
| 341 // Don't get stuck on the first run wallet interstitial. | 340 // Don't get stuck on the first run wallet interstitial. |
| 342 profile()->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet, | 341 profile()->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet, |
| 343 true); | 342 true); |
| 344 | 343 |
| 345 SetUpControllerWithFormData(DefaultFormData()); | 344 SetUpControllerWithFormData(DefaultFormData()); |
| 346 } | 345 } |
| 347 | 346 |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 controller()->CurrentAutocheckoutSteps()[1].type()); | 2221 controller()->CurrentAutocheckoutSteps()[1].type()); |
| 2223 EXPECT_EQ(AUTOCHECKOUT_STEP_STARTED, | 2222 EXPECT_EQ(AUTOCHECKOUT_STEP_STARTED, |
| 2224 controller()->CurrentAutocheckoutSteps()[1].status()); | 2223 controller()->CurrentAutocheckoutSteps()[1].status()); |
| 2225 EXPECT_EQ(AUTOCHECKOUT_STEP_BILLING, | 2224 EXPECT_EQ(AUTOCHECKOUT_STEP_BILLING, |
| 2226 controller()->CurrentAutocheckoutSteps()[2].type()); | 2225 controller()->CurrentAutocheckoutSteps()[2].type()); |
| 2227 EXPECT_EQ(AUTOCHECKOUT_STEP_UNSTARTED, | 2226 EXPECT_EQ(AUTOCHECKOUT_STEP_UNSTARTED, |
| 2228 controller()->CurrentAutocheckoutSteps()[2].status()); | 2227 controller()->CurrentAutocheckoutSteps()[2].status()); |
| 2229 } | 2228 } |
| 2230 | 2229 |
| 2231 } // namespace autofill | 2230 } // namespace autofill |
| OLD | NEW |