OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_password_manager_client.h" | 5 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 void SetLoggingState(bool active) override { | 171 void SetLoggingState(bool active) override { |
172 called_set_logging_state_ = true; | 172 called_set_logging_state_ = true; |
173 logging_state_active_ = active; | 173 logging_state_active_ = active; |
174 } | 174 } |
175 | 175 |
176 void AutofillUsernameAndPasswordDataReceived( | 176 void AutofillUsernameAndPasswordDataReceived( |
177 const autofill::FormsPredictionsMap& predictions) override {} | 177 const autofill::FormsPredictionsMap& predictions) override {} |
178 | 178 |
179 void FindFocusedPasswordForm( | 179 void FindFocusedPasswordForm( |
180 const FindFocusedPasswordFormCallback& callback) override {} | 180 FindFocusedPasswordFormCallback callback) override {} |
181 | 181 |
182 // Records whether SetLoggingState() gets called. | 182 // Records whether SetLoggingState() gets called. |
183 bool called_set_logging_state_; | 183 bool called_set_logging_state_; |
184 // Records data received via SetLoggingState() call. | 184 // Records data received via SetLoggingState() call. |
185 bool logging_state_active_; | 185 bool logging_state_active_; |
186 | 186 |
187 mojo::Binding<autofill::mojom::PasswordAutofillAgent> binding_; | 187 mojo::Binding<autofill::mojom::PasswordAutofillAgent> binding_; |
188 }; | 188 }; |
189 | 189 |
190 } // namespace | 190 } // namespace |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 web_contents()->GetBrowserContext(), nullptr)); | 616 web_contents()->GetBrowserContext(), nullptr)); |
617 std::unique_ptr<MockChromePasswordManagerClient> client( | 617 std::unique_ptr<MockChromePasswordManagerClient> client( |
618 new MockChromePasswordManagerClient(test_web_contents.get())); | 618 new MockChromePasswordManagerClient(test_web_contents.get())); |
619 EXPECT_CALL(*client->password_protection_service(), | 619 EXPECT_CALL(*client->password_protection_service(), |
620 MaybeStartLowReputationRequest(_, _, _)) | 620 MaybeStartLowReputationRequest(_, _, _)) |
621 .Times(1); | 621 .Times(1); |
622 client->CheckSafeBrowsingReputation(GURL("http://foo.com/submit"), | 622 client->CheckSafeBrowsingReputation(GURL("http://foo.com/submit"), |
623 GURL("http://foo.com/iframe.html")); | 623 GURL("http://foo.com/iframe.html")); |
624 } | 624 } |
625 #endif | 625 #endif |
OLD | NEW |