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 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_ |
OLD | NEW |