| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ | 5 #ifndef REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ |
| 6 #define REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ | 6 #define REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "remoting/test/access_token_fetcher.h" | 11 #include "remoting/test/access_token_fetcher.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 namespace test { | 14 namespace test { |
| 14 | 15 |
| 15 const char kFakeAccessTokenFetcherRefreshTokenValue[] = "fake_refresh_token"; | 16 const char kFakeAccessTokenFetcherRefreshTokenValue[] = "fake_refresh_token"; |
| 16 const char kFakeAccessTokenFetcherAccessTokenValue[] = "fake_access_token"; | 17 const char kFakeAccessTokenFetcherAccessTokenValue[] = "fake_access_token"; |
| 17 | 18 |
| 18 // Used for testing classes which rely on the AccessTokenFetcher and want to | 19 // Used for testing classes which rely on the AccessTokenFetcher and want to |
| 19 // simulate success and failure scenarios without using the actual class and | 20 // simulate success and failure scenarios without using the actual class and |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 // True if GetAccessTokenFromRefreshToken() should fail. | 46 // True if GetAccessTokenFromRefreshToken() should fail. |
| 46 bool fail_access_token_from_refresh_token_; | 47 bool fail_access_token_from_refresh_token_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenFetcher); | 49 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenFetcher); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace test | 52 } // namespace test |
| 52 } // namespace remoting | 53 } // namespace remoting |
| 53 | 54 |
| 54 #endif // REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ | 55 #endif // REMOTING_TEST_FAKE_ACCESS_TOKEN_FETCHER_H_ |
| OLD | NEW |