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

Side by Side Diff: chrome/browser/password_manager/save_password_infobar_delegate_android_unittest.cc

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/password_manager/save_password_infobar_delegate_android .h" 5 #include "chrome/browser/password_manager/save_password_infobar_delegate_android .h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 true /* is_smartlock_branding_enabled */) {} 61 true /* is_smartlock_branding_enabled */) {}
62 62
63 ~TestSavePasswordInfobarDelegate() override {} 63 ~TestSavePasswordInfobarDelegate() override {}
64 }; 64 };
65 65
66 } // namespace 66 } // namespace
67 67
68 class SavePasswordInfoBarDelegateTest : public ChromeRenderViewHostTestHarness { 68 class SavePasswordInfoBarDelegateTest : public ChromeRenderViewHostTestHarness {
69 public: 69 public:
70 SavePasswordInfoBarDelegateTest(); 70 SavePasswordInfoBarDelegateTest();
71 ~SavePasswordInfoBarDelegateTest() override{}; 71 ~SavePasswordInfoBarDelegateTest() override {}
72 72
73 void SetUp() override; 73 void SetUp() override;
74 void TearDown() override; 74 void TearDown() override;
75 75
76 PrefService* prefs(); 76 PrefService* prefs();
77 const autofill::PasswordForm& test_form() { return test_form_; } 77 const autofill::PasswordForm& test_form() { return test_form_; }
78 std::unique_ptr<MockPasswordFormManager> CreateMockFormManager(); 78 std::unique_ptr<MockPasswordFormManager> CreateMockFormManager();
79 79
80 protected: 80 protected:
81 std::unique_ptr<ConfirmInfoBarDelegate> CreateDelegate( 81 std::unique_ptr<ConfirmInfoBarDelegate> CreateDelegate(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 TEST_F(SavePasswordInfoBarDelegateTest, 145 TEST_F(SavePasswordInfoBarDelegateTest,
146 CancelTestCredentialSourcePasswordManager) { 146 CancelTestCredentialSourcePasswordManager) {
147 std::unique_ptr<MockPasswordFormManager> password_form_manager( 147 std::unique_ptr<MockPasswordFormManager> password_form_manager(
148 CreateMockFormManager()); 148 CreateMockFormManager());
149 EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist()); 149 EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist());
150 std::unique_ptr<ConfirmInfoBarDelegate> infobar( 150 std::unique_ptr<ConfirmInfoBarDelegate> infobar(
151 CreateDelegate(std::move(password_form_manager))); 151 CreateDelegate(std::move(password_form_manager)));
152 EXPECT_TRUE(infobar->Cancel()); 152 EXPECT_TRUE(infobar->Cancel());
153 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698