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

Side by Side Diff: chromeos/components/tether/fake_network_configuration_remover.h

Issue 2857853005: [CrOS Tether] Create TetherDisconnector, which disconnects from active tethering sessions. (Closed)
Patch Set: hansberry@ comments. 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 CHROMEOS_COMPONENTS_TETHER_FAKE_NETWORK_CONFIGURATION_REMOVER_H_
6 #define CHROMEOS_COMPONENTS_TETHER_FAKE_NETWORK_CONFIGURATION_REMOVER_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "chromeos/components/tether/network_configuration_remover.h"
12
13 namespace chromeos {
14
15 namespace tether {
16
17 // Test double for NetworkConfigurationRemover.
18 class FakeNetworkConfigurationRemover : public NetworkConfigurationRemover {
19 public:
20 FakeNetworkConfigurationRemover();
21 ~FakeNetworkConfigurationRemover() override;
22
23 std::string last_removed_wifi_network_guid() {
24 return last_removed_wifi_network_guid_;
25 }
26
27 // NetworkConfigurationRemover:
28 void RemoveNetworkConfiguration(
29 const std::string& wifi_network_guid) override;
30
31 private:
32 std::string last_removed_wifi_network_guid_;
33
34 DISALLOW_COPY_AND_ASSIGN(FakeNetworkConfigurationRemover);
35 };
36
37 } // namespace tether
38
39 } // namespace chromeos
40
41 #endif // CHROMEOS_COMPONENTS_TETHER_FAKE_NETWORK_CONFIGURATION_REMOVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698