Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / test / fake_host_list_fetcher.h
blobbe77ca099dfe493e687402076dc7d258a291b7c2
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.
5 #ifndef REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
6 #define REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_
8 #include "remoting/test/host_list_fetcher.h"
10 namespace remoting {
11 namespace test {
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;
20 // HostListFetcher interface.
21 void RetrieveHostlist(const std::string& access_token,
22 const HostlistCallback& callback) override;
24 void set_retrieved_host_list(const std::vector<HostInfo>& host_list) {
25 host_list_ = host_list;
28 private:
29 std::vector<HostInfo> host_list_;
31 DISALLOW_COPY_AND_ASSIGN(FakeHostListFetcher);
34 } // namespace test
35 } // namespace remoting
37 #endif // REMOTING_TEST_FAKE_HOST_LIST_FETCHER_H_