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

Side by Side Diff: chrome/browser/chromeos/cros/mock_network_library.h

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/cros/network_library.h" 10 #include "chrome/browser/chromeos/cros/network_library.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
pneubeck (no reviews) 2012/12/10 09:33:10 include onc_constants
Greg Spencer (Chromium) 2012/12/10 23:54:03 Done.
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 class MockNetworkLibrary : public NetworkLibrary { 15 class MockNetworkLibrary : public NetworkLibrary {
16 public: 16 public:
17 MockNetworkLibrary(); 17 MockNetworkLibrary();
18 virtual ~MockNetworkLibrary(); 18 virtual ~MockNetworkLibrary();
19 19
20 MOCK_METHOD0(Init, void(void)); 20 MOCK_METHOD0(Init, void(void));
21 MOCK_CONST_METHOD0(IsCros, bool(void)); 21 MOCK_CONST_METHOD0(IsCros, bool(void));
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 NetworkIPConfigVector(const std::string&, 180 NetworkIPConfigVector(const std::string&,
181 std::string*, 181 std::string*,
182 HardwareAddressFormat)); 182 HardwareAddressFormat));
183 MOCK_METHOD6(SetIPParameters, void(const std::string&, 183 MOCK_METHOD6(SetIPParameters, void(const std::string&,
184 const std::string&, 184 const std::string&,
185 const std::string&, 185 const std::string&,
186 const std::string&, 186 const std::string&,
187 const std::string&, 187 const std::string&,
188 int)); 188 int));
189 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); 189 MOCK_METHOD0(SwitchToPreferredNetwork, void(void));
190 MOCK_METHOD5(LoadOncNetworks, bool(const std::string&, 190 MOCK_METHOD4(LoadOncNetworks, bool(const std::string&,
191 const std::string&, 191 const std::string&,
192 NetworkUIData::ONCSource, 192 onc::ONCSource,
193 bool, 193 bool));
194 std::string*));
195 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); 194 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&));
196 }; 195 };
197 196
198 } // namespace chromeos 197 } // namespace chromeos
199 198
200 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ 199 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698