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_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ |
7 | 7 |
8 #include "base/metrics/histogram_samples.h" | 8 #include "base/metrics/histogram_samples.h" |
9 #include "base/test/statistics_delta_reader.h" | 9 #include "base/test/statistics_delta_reader.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Get the icon view for the current WebContents. | 30 // Get the icon view for the current WebContents. |
31 ManagePasswordsIconView* view(); | 31 ManagePasswordsIconView* view(); |
32 | 32 |
33 // Execute the browser command to open the manage passwords bubble. | 33 // Execute the browser command to open the manage passwords bubble. |
34 void ExecuteManagePasswordsCommand(); | 34 void ExecuteManagePasswordsCommand(); |
35 | 35 |
36 // Put the controller, icon, and bubble into a managing-password state. | 36 // Put the controller, icon, and bubble into a managing-password state. |
37 void SetupManagingPasswords(); | 37 void SetupManagingPasswords(); |
38 | 38 |
| 39 // Put the controller, icon, and bubble into the confirmation state. |
| 40 void SetupAutomaticPassword(); |
| 41 |
39 // Put the controller, icon, and bubble into a pending-password state. | 42 // Put the controller, icon, and bubble into a pending-password state. |
40 void SetupPendingPassword(); | 43 void SetupPendingPassword(); |
41 | 44 |
42 // Put the controller, icon, and bubble into a blacklisted state. | 45 // Put the controller, icon, and bubble into a blacklisted state. |
43 void SetupBlackistedPassword(); | 46 void SetupBlackistedPassword(); |
44 | 47 |
45 // Get samples for |histogram|. | 48 // Get samples for |histogram|. |
46 base::HistogramSamples* GetSamples(const char* histogram); | 49 base::HistogramSamples* GetSamples(const char* histogram); |
47 | 50 |
48 autofill::PasswordForm* test_form() { return &test_form_; } | 51 autofill::PasswordForm* test_form() { return &test_form_; } |
49 | 52 |
50 private: | 53 private: |
51 autofill::PasswordForm test_form_; | 54 autofill::PasswordForm test_form_; |
52 base::StatisticsDeltaReader statistics_reader_; | 55 base::StatisticsDeltaReader statistics_reader_; |
53 | 56 |
54 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsViewTest); | 57 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsViewTest); |
55 }; | 58 }; |
56 | 59 |
57 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_ |
OLD | NEW |