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

Side by Side Diff: remoting/test/fake_host_list_fetcher.h

Issue 2542343004: Updating the Chromoting Test Driver to target the test environment (Closed)
Patch Set: Addressing feedback Created 4 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
« no previous file with comments | « remoting/test/chromoting_test_fixture.cc ('k') | remoting/test/fake_host_list_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_ 5 #ifndef REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
6 #define REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_ 6 #define REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "remoting/test/host_list_fetcher.h" 9 #include "remoting/test/host_list_fetcher.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 namespace test { 12 namespace test {
13 13
14 // Used to fake retrieving the host list without making any actual calls to the 14 // Used to fake retrieving the host list without making any actual calls to the
15 // directory service for information. 15 // directory service for information.
16 class FakeHostListFetcher : public HostListFetcher { 16 class FakeHostListFetcher : public HostListFetcher {
17 public: 17 public:
18 FakeHostListFetcher(); 18 FakeHostListFetcher();
19 ~FakeHostListFetcher() override; 19 ~FakeHostListFetcher() override;
20 20
21 // HostListFetcher interface. 21 // HostListFetcher interface.
22 void RetrieveHostlist(const std::string& access_token, 22 void RetrieveHostlist(const std::string& access_token,
23 const std::string& target_url,
23 const HostlistCallback& callback) override; 24 const HostlistCallback& callback) override;
24 25
25 void set_retrieved_host_list(const std::vector<HostInfo>& host_list) { 26 void set_retrieved_host_list(const std::vector<HostInfo>& host_list) {
26 host_list_ = host_list; 27 host_list_ = host_list;
27 } 28 }
28 29
29 private: 30 private:
30 std::vector<HostInfo> host_list_; 31 std::vector<HostInfo> host_list_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(FakeHostListFetcher); 33 DISALLOW_COPY_AND_ASSIGN(FakeHostListFetcher);
33 }; 34 };
34 35
35 } // namespace test 36 } // namespace test
36 } // namespace remoting 37 } // namespace remoting
37 38
38 #endif // REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_ 39 #endif // REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
OLDNEW
« no previous file with comments | « remoting/test/chromoting_test_fixture.cc ('k') | remoting/test/fake_host_list_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698