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

Side by Side Diff: chrome/browser/local_discovery/wifi/mock_wifi_manager.h

Issue 450533003: Added function to get list of networks with prefetched passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698