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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/metrics/histogram_samples.h" | 11 #include "base/metrics/histogram_samples.h" |
12 #include "base/test/histogram_tester.h" | 12 #include "base/test/histogram_tester.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
14 #include "components/autofill/core/common/password_form.h" | 14 #include "components/autofill/core/common/password_form.h" |
15 #include "components/password_manager/core/common/credential_manager_types.h" | 15 #include "components/password_manager/core/common/credential_manager_types.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 | 17 |
18 class GURL; | |
19 class ManagePasswordsIconView; | 18 class ManagePasswordsIconView; |
20 class PasswordsClientUIDelegate; | 19 class PasswordsClientUIDelegate; |
21 | 20 |
22 // Test class for the various password management view bits and pieces. Provides | 21 // Test class for the various password management view bits and pieces. Provides |
23 // some helper methods to poke at the bubble, icon, and controller's state. | 22 // some helper methods to poke at the bubble, icon, and controller's state. |
24 class ManagePasswordsTest : public InProcessBrowserTest { | 23 class ManagePasswordsTest : public InProcessBrowserTest { |
25 public: | 24 public: |
26 ManagePasswordsTest(); | 25 ManagePasswordsTest(); |
27 ~ManagePasswordsTest(); | 26 ~ManagePasswordsTest(); |
28 | 27 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void(const password_manager::CredentialInfo&)); | 59 void(const password_manager::CredentialInfo&)); |
61 | 60 |
62 private: | 61 private: |
63 autofill::PasswordForm test_form_; | 62 autofill::PasswordForm test_form_; |
64 base::HistogramTester histogram_tester_; | 63 base::HistogramTester histogram_tester_; |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsTest); | 65 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsTest); |
67 }; | 66 }; |
68 | 67 |
69 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ | 68 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_TEST_H_ |
OLD | NEW |