Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: remoting/test/chromoting_test_driver_environment_unittest.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/test/chromoting_test_driver_environment.h ('k') | remoting/test/chromoting_test_fixture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698