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

Side by Side Diff: components/wifi/fake_wifi_service.h

Issue 226883002: WiFi client for GCD bootstrapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_ 5 #ifndef COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_
6 #define COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_ 6 #define COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/wifi/network_properties.h"
10 #include "components/wifi/wifi_service.h" 11 #include "components/wifi/wifi_service.h"
11 12
12 namespace wifi { 13 namespace wifi {
13 14
14 // Fake implementation of WiFiService used to satisfy expectations of 15 // Fake implementation of WiFiService used to satisfy expectations of
15 // networkingPrivateApi browser test. 16 // networkingPrivateApi browser test.
16 class FakeWiFiService : public WiFiService { 17 class FakeWiFiService : public WiFiService {
17 public: 18 public:
18 FakeWiFiService(); 19 FakeWiFiService();
19 virtual ~FakeWiFiService(); 20 virtual ~FakeWiFiService();
(...skipping 11 matching lines...) Expand all
31 base::DictionaryValue* properties, 32 base::DictionaryValue* properties,
32 std::string* error) OVERRIDE; 33 std::string* error) OVERRIDE;
33 virtual void SetProperties(const std::string& network_guid, 34 virtual void SetProperties(const std::string& network_guid,
34 scoped_ptr<base::DictionaryValue> properties, 35 scoped_ptr<base::DictionaryValue> properties,
35 std::string* error) OVERRIDE; 36 std::string* error) OVERRIDE;
36 virtual void CreateNetwork(bool shared, 37 virtual void CreateNetwork(bool shared,
37 scoped_ptr<base::DictionaryValue> properties, 38 scoped_ptr<base::DictionaryValue> properties,
38 std::string* network_guid, 39 std::string* network_guid,
39 std::string* error) OVERRIDE; 40 std::string* error) OVERRIDE;
40 virtual void GetVisibleNetworks(const std::string& network_type, 41 virtual void GetVisibleNetworks(const std::string& network_type,
41 base::ListValue* network_list) OVERRIDE; 42 base::ListValue* network_list,
43 bool include_details) OVERRIDE;
42 virtual void RequestNetworkScan() OVERRIDE; 44 virtual void RequestNetworkScan() OVERRIDE;
43 virtual void StartConnect(const std::string& network_guid, 45 virtual void StartConnect(const std::string& network_guid,
44 std::string* error) OVERRIDE; 46 std::string* error) OVERRIDE;
45 virtual void StartDisconnect(const std::string& network_guid, 47 virtual void StartDisconnect(const std::string& network_guid,
46 std::string* error) OVERRIDE; 48 std::string* error) OVERRIDE;
47 virtual void GetKeyFromSystem(const std::string& network_guid, 49 virtual void GetKeyFromSystem(const std::string& network_guid,
48 std::string* key_data, 50 std::string* key_data,
49 std::string* error) OVERRIDE; 51 std::string* error) OVERRIDE;
50 virtual void SetEventObservers( 52 virtual void SetEventObservers(
51 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, 53 scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
(...skipping 16 matching lines...) Expand all
68 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 70 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
69 NetworkGuidListCallback networks_changed_observer_; 71 NetworkGuidListCallback networks_changed_observer_;
70 NetworkGuidListCallback network_list_changed_observer_; 72 NetworkGuidListCallback network_list_changed_observer_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(FakeWiFiService); 74 DISALLOW_COPY_AND_ASSIGN(FakeWiFiService);
73 }; 75 };
74 76
75 } // namespace wifi 77 } // namespace wifi
76 78
77 #endif // COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_ 79 #endif // COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698