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 CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "chrome/browser/local_discovery/wifi/wifi_manager.h" | 9 #include "chrome/browser/local_discovery/wifi/wifi_manager.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 class MockWifiManagerFactory : public WifiManagerFactory { | 76 class MockWifiManagerFactory : public WifiManagerFactory { |
77 public: | 77 public: |
78 MockWifiManagerFactory(); | 78 MockWifiManagerFactory(); |
79 virtual ~MockWifiManagerFactory(); | 79 virtual ~MockWifiManagerFactory(); |
80 | 80 |
81 virtual scoped_ptr<WifiManager> CreateWifiManager() OVERRIDE; | 81 virtual scoped_ptr<WifiManager> CreateWifiManager() OVERRIDE; |
82 | 82 |
83 MockWifiManager* GetLastCreatedWifiManager(); | 83 MockWifiManager* GetLastCreatedWifiManager(); |
84 | 84 |
| 85 MOCK_METHOD0(WifiManagerCreated, void()); |
| 86 |
85 private: | 87 private: |
86 MockWifiManager* last_created_manager_; | 88 MockWifiManager* last_created_manager_; |
87 }; | 89 }; |
88 | 90 |
89 } // namespace wifi | 91 } // namespace wifi |
90 | 92 |
91 } // namespace local_discovery | 93 } // namespace local_discovery |
92 | 94 |
93 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ | 95 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_MOCK_WIFI_MANAGER_H_ |
OLD | NEW |