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

Side by Side Diff: chrome/browser/chromeos/tether/fake_tether_service.h

Issue 2900903002: Create a FakeTetherService, which stubs out TetherService for development. (Closed)
Patch Set: Rebase. Created 3 years, 7 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698