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 #include "remoting/test/chromoting_test_driver_environment.h" | 5 #include "remoting/test/chromoting_test_driver_environment.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" |
8 #include "remoting/test/fake_access_token_fetcher.h" | 9 #include "remoting/test/fake_access_token_fetcher.h" |
9 #include "remoting/test/fake_host_list_fetcher.h" | 10 #include "remoting/test/fake_host_list_fetcher.h" |
10 #include "remoting/test/fake_refresh_token_store.h" | 11 #include "remoting/test/fake_refresh_token_store.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 const char kAuthCodeValue[] = "4/892379827345jkefvkdfbv"; | 15 const char kAuthCodeValue[] = "4/892379827345jkefvkdfbv"; |
15 const char kUserNameValue[] = "remoting_user@gmail.com"; | 16 const char kUserNameValue[] = "remoting_user@gmail.com"; |
16 const char kHostNameValue[] = "fake_host_name"; | 17 const char kHostNameValue[] = "fake_host_name"; |
17 const char kFakeHostNameValue[] = "fake_host_name"; | 18 const char kFakeHostNameValue[] = "fake_host_name"; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 TEST_F(ChromotingTestDriverEnvironmentTest, HostListEmptyFromDirectory) { | 182 TEST_F(ChromotingTestDriverEnvironmentTest, HostListEmptyFromDirectory) { |
182 // Set the host list fetcher to return an empty list. | 183 // Set the host list fetcher to return an empty list. |
183 fake_host_list_fetcher_.set_retrieved_host_list(std::vector<HostInfo>()); | 184 fake_host_list_fetcher_.set_retrieved_host_list(std::vector<HostInfo>()); |
184 | 185 |
185 EXPECT_FALSE(environment_object_->Initialize(kAuthCodeValue)); | 186 EXPECT_FALSE(environment_object_->Initialize(kAuthCodeValue)); |
186 EXPECT_TRUE(fake_token_store_.refresh_token_write_attempted()); | 187 EXPECT_TRUE(fake_token_store_.refresh_token_write_attempted()); |
187 } | 188 } |
188 | 189 |
189 } // namespace test | 190 } // namespace test |
190 } // namespace remoting | 191 } // namespace remoting |
OLD | NEW |