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

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

Issue 1237883002: Added chromoting test environment for the tests to share data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unittest, display connection stats ability, and error check for transition delay. Created 5 years, 5 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
6 #define REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
7
8 #include "remoting/test/host_list_fetcher.h"
9
10 namespace remoting {
11 namespace test {
12
13 // Used to fake retrieving the host list without making any actual calls to the
14 // directory service for information.
15 class FakeHostListFetcher : public HostListFetcher {
16 public:
17 FakeHostListFetcher();
18 ~FakeHostListFetcher() override;
19
20 // HostListFetcher interface.
21 void RetrieveHostlist(const std::string& access_token,
22 const HostlistCallback& callback) override;
23
24 void set_retrieved_host_list(const std::vector<HostInfo>& host_list) {
25 host_list_ = host_list;
26 }
27
28 private:
29 std::vector<HostInfo> host_list_;
30
31 DISALLOW_COPY_AND_ASSIGN(FakeHostListFetcher);
32 };
33
34 } // namespace test
35 } // namespace remoting
36
37 #endif // REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
OLDNEW
« no previous file with comments | « remoting/test/chromoting_test_driver_environment_unittest.cc ('k') | remoting/test/fake_host_list_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698