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

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: cleanup TODOs. merge code. kill more threads. i never get tired of thread carnage. 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698