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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))); 1496 base::FilePath(FILE_PATH_LITERAL("chrome/test/data")));
1497 ASSERT_TRUE(http_server.Start()); 1497 ASSERT_TRUE(http_server.Start());
1498 EXPECT_TRUE(RunTestPage(http_server)); 1498 EXPECT_TRUE(RunTestPage(http_server));
1499 } 1499 }
1500 1500
1501 // Like the parent test, but doesn't add the --reduce-security-for-testing flag. 1501 // Like the parent test, but doesn't add the --reduce-security-for-testing flag.
1502 class AutofillDialogControllerSecurityTest : 1502 class AutofillDialogControllerSecurityTest :
1503 public AutofillDialogControllerTest { 1503 public AutofillDialogControllerTest {
1504 public: 1504 public:
1505 AutofillDialogControllerSecurityTest() {} 1505 AutofillDialogControllerSecurityTest() {}
1506 virtual ~AutofillDialogControllerSecurityTest() {} 1506 ~AutofillDialogControllerSecurityTest() override {}
1507 1507
1508 void SetUpCommandLine(CommandLine* command_line) override { 1508 void SetUpCommandLine(CommandLine* command_line) override {
1509 CHECK(!command_line->HasSwitch(::switches::kReduceSecurityForTesting)); 1509 CHECK(!command_line->HasSwitch(::switches::kReduceSecurityForTesting));
1510 } 1510 }
1511 1511
1512 typedef net::BaseTestServer::SSLOptions SSLOptions; 1512 typedef net::BaseTestServer::SSLOptions SSLOptions;
1513 1513
1514 private: 1514 private:
1515 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerSecurityTest); 1515 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerSecurityTest);
1516 }; 1516 };
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 "<input autocomplete='transaction-currency' value='USD' readonly>" 1785 "<input autocomplete='transaction-currency' value='USD' readonly>"
1786 "<input autocomplete='cc-csc'>"); 1786 "<input autocomplete='cc-csc'>");
1787 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html); 1787 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html);
1788 ASSERT_TRUE(controller); 1788 ASSERT_TRUE(controller);
1789 1789
1790 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_); 1790 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_);
1791 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_); 1791 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_);
1792 } 1792 }
1793 1793
1794 } // namespace autofill 1794 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698