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_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 void Observe(int type, | 25 void Observe(int type, |
26 const content::NotificationSource& source, | 26 const content::NotificationSource& source, |
27 const content::NotificationDetails& details) override; | 27 const content::NotificationDetails& details) override; |
28 | 28 |
29 void AddHandler(LoginHandler* handler); | 29 void AddHandler(LoginHandler* handler); |
30 | 30 |
31 void RemoveHandler(LoginHandler* handler); | 31 void RemoveHandler(LoginHandler* handler); |
32 | 32 |
33 void Register(const content::NotificationSource& source); | 33 void Register(const content::NotificationSource& source); |
34 void UnregisterAll(); | |
35 | 34 |
36 const std::list<LoginHandler*>& handlers() const { return handlers_; } | 35 const std::list<LoginHandler*>& handlers() const { return handlers_; } |
37 | 36 |
38 int auth_needed_count() const { return auth_needed_count_; } | 37 int auth_needed_count() const { return auth_needed_count_; } |
39 int auth_supplied_count() const { return auth_supplied_count_; } | 38 int auth_supplied_count() const { return auth_supplied_count_; } |
40 int auth_cancelled_count() const { return auth_cancelled_count_; } | 39 int auth_cancelled_count() const { return auth_cancelled_count_; } |
41 | 40 |
42 private: | 41 private: |
43 std::list<LoginHandler*> handlers_; | 42 std::list<LoginHandler*> handlers_; |
44 | 43 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const content::NotificationSource& source, | 95 const content::NotificationSource& source, |
97 const content::NotificationDetails& details) override; | 96 const content::NotificationDetails& details) override; |
98 | 97 |
99 private: | 98 private: |
100 int remaining_notification_count_; // Number of notifications remaining. | 99 int remaining_notification_count_; // Number of notifications remaining. |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(WindowedLoadStopObserver); | 101 DISALLOW_COPY_AND_ASSIGN(WindowedLoadStopObserver); |
103 }; | 102 }; |
104 | 103 |
105 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 104 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
OLD | NEW |