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

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

Issue 10827283: This updates the StaticIP configuration UI to match new mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 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 | 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_NETWORK_LIBRARY_IMPL_STUB_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_STUB_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_STUB_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_STUB_H_
7 7
8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h" 8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void RefreshIPConfig(Network* network) OVERRIDE; 70 virtual void RefreshIPConfig(Network* network) OVERRIDE;
71 71
72 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE; 72 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE;
73 73
74 virtual void EnableOfflineMode(bool enable) OVERRIDE; 74 virtual void EnableOfflineMode(bool enable) OVERRIDE;
75 75
76 virtual NetworkIPConfigVector GetIPConfigs( 76 virtual NetworkIPConfigVector GetIPConfigs(
77 const std::string& device_path, 77 const std::string& device_path,
78 std::string* hardware_address, 78 std::string* hardware_address,
79 HardwareAddressFormat format) OVERRIDE; 79 HardwareAddressFormat format) OVERRIDE;
80 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) OVERRIDE; 80 virtual void SetIPParameters(const std::string& service_path,
81 const std::string& address,
82 const std::string& netmask,
83 const std::string& gateway,
84 const std::string& name_servers,
85 int dhcp_usage_mask) OVERRIDE;
81 86
82 private: 87 private:
83 void AddStubNetwork(Network* network, NetworkProfileType profile_type); 88 void AddStubNetwork(Network* network, NetworkProfileType profile_type);
84 void AddStubRememberedNetwork(Network* network); 89 void AddStubRememberedNetwork(Network* network);
85 void ConnectToNetwork(Network* network); 90 void ConnectToNetwork(Network* network);
86 91
87 std::string ip_address_; 92 std::string ip_address_;
88 std::string hardware_address_; 93 std::string hardware_address_;
89 NetworkIPConfigVector ip_configs_; 94 NetworkIPConfigVector ip_configs_;
90 std::string pin_; 95 std::string pin_;
91 bool pin_required_; 96 bool pin_required_;
92 bool pin_entered_; 97 bool pin_entered_;
93 int64 connect_delay_ms_; 98 int64 connect_delay_ms_;
94 int network_priority_order_; 99 int network_priority_order_;
95 WifiNetworkVector disabled_wifi_networks_; 100 WifiNetworkVector disabled_wifi_networks_;
96 CellularNetworkVector disabled_cellular_networks_; 101 CellularNetworkVector disabled_cellular_networks_;
97 WimaxNetworkVector disabled_wimax_networks_; 102 WimaxNetworkVector disabled_wimax_networks_;
98 103
99 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplStub); 104 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplStub);
100 }; 105 };
101 106
102 } // namespace chromeos 107 } // namespace chromeos
103 108
104 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_STUB_H_ 109 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_STUB_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library_impl_cros.cc ('k') | chrome/browser/chromeos/cros/network_library_impl_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698