Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 CHROME_BROWSER_CHROMEOS_TETHER_FAKE_TETHER_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_TETHER_FAKE_TETHER_SERVICE_H_ | |
| 7 | |
| 8 #include "chrome/browser/chromeos/tether/tether_service.h" | |
| 9 | |
| 10 // A stub of TetherService that provides an easy way to develop for Tether on | |
| 11 // non-Chromebooks or without a Tether host. To use, see | |
| 12 // chromeos::switches::kTetherStub for more details. | |
| 13 class FakeTetherService : public TetherService { | |
| 14 public: | |
| 15 FakeTetherService(int num_tether_networks, | |
|
stevenjb
2017/05/23 22:24:33
I'd rather just have this default to '1' and call
Ryan Hansberry
2017/05/23 22:53:12
Done.
| |
| 16 Profile* profile, | |
| 17 chromeos::PowerManagerClient* power_manager_client, | |
| 18 chromeos::SessionManagerClient* session_manager_client, | |
| 19 cryptauth::CryptAuthService* cryptauth_service, | |
| 20 chromeos::NetworkStateHandler* network_state_handler); | |
| 21 | |
| 22 // TetherService: | |
| 23 void StartTetherIfEnabled() override; | |
| 24 void StopTether() override; | |
| 25 | |
| 26 protected: | |
| 27 // TetherService: | |
| 28 bool HasSyncedTetherHosts() const override; | |
| 29 | |
| 30 private: | |
| 31 int num_tether_networks_; | |
|
stevenjb
2017/05/23 22:24:33
= 1;
Ryan Hansberry
2017/05/23 22:53:12
Done.
| |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(FakeTetherService); | |
| 34 }; | |
| 35 | |
| 36 #endif // CHROME_BROWSER_CHROMEOS_TETHER_FAKE_TETHER_SERVICE_H_ | |
| OLD | NEW |