OLD | NEW |
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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 534 |
535 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryTest, GetUserExpandedValue); | 535 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryTest, GetUserExpandedValue); |
536 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, | 536 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, |
537 TestLoadWifiCertificatePattern); | 537 TestLoadWifiCertificatePattern); |
538 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, | 538 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, |
539 TestLoadVPNCertificatePattern); | 539 TestLoadVPNCertificatePattern); |
540 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, | 540 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, |
541 TestNoCertificatePatternForDevicePolicy); | 541 TestNoCertificatePatternForDevicePolicy); |
542 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncWifi); | 542 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncWifi); |
543 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncVPN); | 543 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncVPN); |
| 544 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, GenerateProperties); |
544 | 545 |
545 // Use these functions at your peril. They are used by the various | 546 // Use these functions at your peril. They are used by the various |
546 // parsers to set state, and really shouldn't be used by anything else | 547 // parsers to set state, and really shouldn't be used by anything else |
547 // because they don't do the error checking and sending to the | 548 // because they don't do the error checking and sending to the |
548 // network layer that the other setters do. | 549 // network layer that the other setters do. |
549 void set_device_path(const std::string& device_path) { | 550 void set_device_path(const std::string& device_path) { |
550 device_path_ = device_path; | 551 device_path_ = device_path; |
551 } | 552 } |
552 void set_name(const std::string& name) { name_ = name; } | 553 void set_name(const std::string& name) { name_ = name; } |
553 void set_mode(ConnectionMode mode) { mode_ = mode; } | 554 void set_mode(ConnectionMode mode) { mode_ = mode; } |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 const std::string& service_path) = 0; | 1710 const std::string& service_path) = 0; |
1710 | 1711 |
1711 // Factory function, creates a new instance and returns ownership. | 1712 // Factory function, creates a new instance and returns ownership. |
1712 // For normal usage, access the singleton via CrosLibrary::Get(). | 1713 // For normal usage, access the singleton via CrosLibrary::Get(). |
1713 static NetworkLibrary* GetImpl(bool stub); | 1714 static NetworkLibrary* GetImpl(bool stub); |
1714 }; | 1715 }; |
1715 | 1716 |
1716 } // namespace chromeos | 1717 } // namespace chromeos |
1717 | 1718 |
1718 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 1719 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |