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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments. merge to ToT. Murder a DB thread and more TestBrowserThreads. Created 7 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 <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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 }; 272 };
273 273
274 class AutofillDialogControllerTest : public testing::Test { 274 class AutofillDialogControllerTest : public testing::Test {
275 protected: 275 protected:
276 AutofillDialogControllerTest() 276 AutofillDialogControllerTest()
277 : form_structure_(NULL) { 277 : form_structure_(NULL) {
278 } 278 }
279 279
280 // testing::Test implementation: 280 // testing::Test implementation:
281 virtual void SetUp() OVERRIDE { 281 virtual void SetUp() OVERRIDE {
282 profile()->CreateRequestContext();
283 test_web_contents_.reset( 282 test_web_contents_.reset(
284 content::WebContentsTester::CreateTestWebContents(profile(), NULL)); 283 content::WebContentsTester::CreateTestWebContents(profile(), NULL));
285 284
286 // Don't get stuck on the first run wallet interstitial. 285 // Don't get stuck on the first run wallet interstitial.
287 profile()->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet, 286 profile()->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet,
288 true); 287 true);
289 288
290 SetUpControllerWithFormData(DefaultFormData()); 289 SetUpControllerWithFormData(DefaultFormData());
291 } 290 }
292 291
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 controller()->CurrentAutocheckoutSteps()[1].type()); 2166 controller()->CurrentAutocheckoutSteps()[1].type());
2168 EXPECT_EQ(AUTOCHECKOUT_STEP_STARTED, 2167 EXPECT_EQ(AUTOCHECKOUT_STEP_STARTED,
2169 controller()->CurrentAutocheckoutSteps()[1].status()); 2168 controller()->CurrentAutocheckoutSteps()[1].status());
2170 EXPECT_EQ(AUTOCHECKOUT_STEP_BILLING, 2169 EXPECT_EQ(AUTOCHECKOUT_STEP_BILLING,
2171 controller()->CurrentAutocheckoutSteps()[2].type()); 2170 controller()->CurrentAutocheckoutSteps()[2].type());
2172 EXPECT_EQ(AUTOCHECKOUT_STEP_UNSTARTED, 2171 EXPECT_EQ(AUTOCHECKOUT_STEP_UNSTARTED,
2173 controller()->CurrentAutocheckoutSteps()[2].status()); 2172 controller()->CurrentAutocheckoutSteps()[2].status());
2174 } 2173 }
2175 2174
2176 } // namespace autofill 2175 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698