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

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

Issue 681823004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 #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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 int submit_button_delay_count_; 394 int submit_button_delay_count_;
395 395
396 DISALLOW_COPY_AND_ASSIGN(TestAutofillDialogController); 396 DISALLOW_COPY_AND_ASSIGN(TestAutofillDialogController);
397 }; 397 };
398 398
399 class AutofillDialogControllerTest : public ChromeRenderViewHostTestHarness { 399 class AutofillDialogControllerTest : public ChromeRenderViewHostTestHarness {
400 protected: 400 protected:
401 AutofillDialogControllerTest(): form_structure_(NULL) {} 401 AutofillDialogControllerTest(): form_structure_(NULL) {}
402 402
403 // testing::Test implementation: 403 // testing::Test implementation:
404 virtual void SetUp() override { 404 void SetUp() override {
405 ChromeRenderViewHostTestHarness::SetUp(); 405 ChromeRenderViewHostTestHarness::SetUp();
406 Reset(); 406 Reset();
407 } 407 }
408 408
409 virtual void TearDown() override { 409 void TearDown() override {
410 if (controller_) 410 if (controller_)
411 controller_->ViewClosed(); 411 controller_->ViewClosed();
412 ChromeRenderViewHostTestHarness::TearDown(); 412 ChromeRenderViewHostTestHarness::TearDown();
413 } 413 }
414 414
415 void Reset() { 415 void Reset() {
416 if (controller_) 416 if (controller_)
417 controller_->ViewClosed(); 417 controller_->ViewClosed();
418 418
419 test_generated_bubble_controller_ = 419 test_generated_bubble_controller_ =
(...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after
3662 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value); 3662 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value);
3663 EXPECT_EQ(ADDRESS_HOME_COUNTRY, 3663 EXPECT_EQ(ADDRESS_HOME_COUNTRY,
3664 form_structure()->field(3)->Type().GetStorableType()); 3664 form_structure()->field(3)->Type().GetStorableType());
3665 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value); 3665 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value);
3666 EXPECT_EQ(ADDRESS_HOME_COUNTRY, 3666 EXPECT_EQ(ADDRESS_HOME_COUNTRY,
3667 form_structure()->field(4)->Type().GetStorableType()); 3667 form_structure()->field(4)->Type().GetStorableType());
3668 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value); 3668 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value);
3669 } 3669 }
3670 3670
3671 } // namespace autofill 3671 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698