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_MOCK_ACCESS_TOKEN_FETCHER_H_ | 5 #ifndef REMOTING_TEST_MOCK_ACCESS_TOKEN_FETCHER_H_ |
6 #define REMOTING_TEST_MOCK_ACCESS_TOKEN_FETCHER_H_ | 6 #define REMOTING_TEST_MOCK_ACCESS_TOKEN_FETCHER_H_ |
7 | 7 |
| 8 #include "remoting/test/access_token_fetcher.h" |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "remoting/test/access_token_fetcher.h" | 12 #include "base/macros.h" |
11 | |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 namespace test { | 17 namespace test { |
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 |
20 // network connection. | 21 // network connection. |
21 class MockAccessTokenFetcher : public AccessTokenFetcher { | 22 class MockAccessTokenFetcher : public AccessTokenFetcher { |
(...skipping 17 matching lines...) Expand all Loading... |
39 private: | 40 private: |
40 scoped_ptr<AccessTokenFetcher> internal_access_token_fetcher_; | 41 scoped_ptr<AccessTokenFetcher> internal_access_token_fetcher_; |
41 | 42 |
42 DISALLOW_COPY_AND_ASSIGN(MockAccessTokenFetcher); | 43 DISALLOW_COPY_AND_ASSIGN(MockAccessTokenFetcher); |
43 }; | 44 }; |
44 | 45 |
45 } // namespace test | 46 } // namespace test |
46 } // namespace remoting | 47 } // namespace remoting |
47 | 48 |
48 #endif // REMOTING_TEST_MOCK_ACCESS_TOKEN_FETCHER_H_ | 49 #endif // REMOTING_TEST_MOCK_ACCESS_TOKEN_FETCHER_H_ |
OLD | NEW |