OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_LOGIN_MOCK_LOGIN_STATUS_CONSUMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOCK_LOGIN_STATUS_CONSUMER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_STATUS_CONSUMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOCK_LOGIN_STATUS_CONSUMER_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 8 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
9 #include "chrome/browser/chromeos/login/user.h" | 9 #include "chrome/browser/chromeos/login/users/user.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class MockConsumer : public LoginStatusConsumer { | 14 class MockConsumer : public LoginStatusConsumer { |
15 public: | 15 public: |
16 MockConsumer(); | 16 MockConsumer(); |
17 virtual ~MockConsumer(); | 17 virtual ~MockConsumer(); |
18 | 18 |
19 MOCK_METHOD1(OnLoginFailure, void(const LoginFailure& error)); | 19 MOCK_METHOD1(OnLoginFailure, void(const LoginFailure& error)); |
(...skipping 22 matching lines...) Expand all Loading... |
42 static void OnFailQuit(const LoginFailure& error); | 42 static void OnFailQuit(const LoginFailure& error); |
43 static void OnFailQuitAndFail(const LoginFailure& error); | 43 static void OnFailQuitAndFail(const LoginFailure& error); |
44 | 44 |
45 // Compatible with LoginStatusConsumer::OnPasswordChangeDetected() | 45 // Compatible with LoginStatusConsumer::OnPasswordChangeDetected() |
46 static void OnMigrateQuit(); | 46 static void OnMigrateQuit(); |
47 static void OnMigrateQuitAndFail(); | 47 static void OnMigrateQuitAndFail(); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace chromeos | 50 } // namespace chromeos |
51 | 51 |
52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_STATUS_CONSUMER_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOCK_LOGIN_STATUS_CONSUMER_H_ |
OLD | NEW |