OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/single_thread_task_runner.h" |
12 #include "components/wifi/network_properties.h" | 13 #include "components/wifi/network_properties.h" |
13 #include "components/wifi/wifi_service.h" | 14 #include "components/wifi/wifi_service.h" |
14 | 15 |
15 namespace wifi { | 16 namespace wifi { |
16 | 17 |
17 // Fake implementation of WiFiService used to satisfy expectations of | 18 // Fake implementation of WiFiService used to satisfy expectations of |
18 // networkingPrivateApi browser test. | 19 // networkingPrivateApi browser test. |
19 class FakeWiFiService : public WiFiService { | 20 class FakeWiFiService : public WiFiService { |
20 public: | 21 public: |
21 FakeWiFiService(); | 22 FakeWiFiService(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 75 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
75 NetworkGuidListCallback networks_changed_observer_; | 76 NetworkGuidListCallback networks_changed_observer_; |
76 NetworkGuidListCallback network_list_changed_observer_; | 77 NetworkGuidListCallback network_list_changed_observer_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(FakeWiFiService); | 79 DISALLOW_COPY_AND_ASSIGN(FakeWiFiService); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace wifi | 82 } // namespace wifi |
82 | 83 |
83 #endif // COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_ | 84 #endif // COMPONENTS_WIFI_FAKE_WIFI_SERVICE_H_ |
OLD | NEW |