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 COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "build/build_config.h" |
12 #include "components/signin/core/browser/signin_manager.h" | 13 #include "components/signin/core/browser/signin_manager.h" |
13 #include "components/signin/core/browser/signin_metrics.h" | 14 #include "components/signin/core/browser/signin_metrics.h" |
14 | 15 |
15 // SigninManager to use for testing. Tests should use the type | 16 // SigninManager to use for testing. Tests should use the type |
16 // SigninManagerForTesting to ensure that the right type for their platform is | 17 // SigninManagerForTesting to ensure that the right type for their platform is |
17 // used. | 18 // used. |
18 | 19 |
19 // Overrides InitTokenService to do-nothing in tests. | 20 // Overrides InitTokenService to do-nothing in tests. |
20 class FakeSigninManagerBase : public SigninManagerBase { | 21 class FakeSigninManagerBase : public SigninManagerBase { |
21 public: | 22 public: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 62 |
62 void CompletePendingSignin() override; | 63 void CompletePendingSignin() override; |
63 | 64 |
64 // Username specified in StartSignInWithRefreshToken() call. | 65 // Username specified in StartSignInWithRefreshToken() call. |
65 std::string username_; | 66 std::string username_; |
66 }; | 67 }; |
67 | 68 |
68 #endif // !defined (OS_CHROMEOS) | 69 #endif // !defined (OS_CHROMEOS) |
69 | 70 |
70 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ | 71 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_SIGNIN_MANAGER_H_ |
OLD | NEW |