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_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ | 5 #ifndef REMOTING_TEST_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ |
6 #define REMOTING_TEST_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ | 6 #define REMOTING_TEST_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/callback.h" | 12 #include "base/callback.h" |
12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | |
15 #include "remoting/test/host_info.h" | 15 #include "remoting/test/host_info.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class MessageLoopForIO; | 19 class MessageLoopForIO; |
20 } | 20 } |
21 | 21 |
22 namespace remoting { | 22 namespace remoting { |
23 namespace test { | 23 namespace test { |
24 | 24 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Access token fetcher used by TestDriverEnvironment tests. | 134 // Access token fetcher used by TestDriverEnvironment tests. |
135 remoting::test::AccessTokenFetcher* test_access_token_fetcher_; | 135 remoting::test::AccessTokenFetcher* test_access_token_fetcher_; |
136 | 136 |
137 // RefreshTokenStore used by TestDriverEnvironment tests. | 137 // RefreshTokenStore used by TestDriverEnvironment tests. |
138 remoting::test::RefreshTokenStore* test_refresh_token_store_; | 138 remoting::test::RefreshTokenStore* test_refresh_token_store_; |
139 | 139 |
140 // HostListFetcher used by TestDriverEnvironment tests. | 140 // HostListFetcher used by TestDriverEnvironment tests. |
141 remoting::test::HostListFetcher* test_host_list_fetcher_; | 141 remoting::test::HostListFetcher* test_host_list_fetcher_; |
142 | 142 |
143 // Used for running network request tasks. | 143 // Used for running network request tasks. |
144 scoped_ptr<base::MessageLoopForIO> message_loop_; | 144 std::unique_ptr<base::MessageLoopForIO> message_loop_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(ChromotingTestDriverEnvironment); | 146 DISALLOW_COPY_AND_ASSIGN(ChromotingTestDriverEnvironment); |
147 }; | 147 }; |
148 | 148 |
149 // Unfortunately a global var is how the GTEST framework handles sharing data | 149 // Unfortunately a global var is how the GTEST framework handles sharing data |
150 // between tests and keeping long-lived objects around. Used to share access | 150 // between tests and keeping long-lived objects around. Used to share access |
151 // tokens and a host list across tests. | 151 // tokens and a host list across tests. |
152 extern ChromotingTestDriverEnvironment* g_chromoting_shared_data; | 152 extern ChromotingTestDriverEnvironment* g_chromoting_shared_data; |
153 | 153 |
154 } // namespace test | 154 } // namespace test |
155 } // namespace remoting | 155 } // namespace remoting |
156 | 156 |
157 #endif // REMOTING_TEST_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ | 157 #endif // REMOTING_TEST_CHROMOTING_TEST_DRIVER_ENVIRONMENT_H_ |
OLD | NEW |