| 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 #include <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 properties->type = api::networking_private::NETWORK_TYPE_ETHERNET; | 185 properties->type = api::networking_private::NETWORK_TYPE_ETHERNET; |
| 186 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED; | 186 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED; |
| 187 result->push_back(std::move(properties)); | 187 result->push_back(std::move(properties)); |
| 188 return result; | 188 return result; |
| 189 } | 189 } |
| 190 | 190 |
| 191 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override { | 191 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override { |
| 192 return base::MakeUnique<base::DictionaryValue>(); | 192 return base::MakeUnique<base::DictionaryValue>(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 std::unique_ptr<base::DictionaryValue> GetCertificateLists() override { |
| 196 return base::MakeUnique<base::DictionaryValue>(); |
| 197 } |
| 198 |
| 195 bool EnableNetworkType(const std::string& type) override { | 199 bool EnableNetworkType(const std::string& type) override { |
| 196 enabled_[type] = true; | 200 enabled_[type] = true; |
| 197 return !fail_; | 201 return !fail_; |
| 198 } | 202 } |
| 199 | 203 |
| 200 bool DisableNetworkType(const std::string& type) override { | 204 bool DisableNetworkType(const std::string& type) override { |
| 201 disabled_[type] = true; | 205 disabled_[type] = true; |
| 202 return !fail_; | 206 return !fail_; |
| 203 } | 207 } |
| 204 | 208 |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_; | 638 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_; |
| 635 } | 639 } |
| 636 | 640 |
| 637 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) { | 641 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) { |
| 638 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_; | 642 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_; |
| 639 } | 643 } |
| 640 | 644 |
| 641 #endif // defined(OS_WIN) | 645 #endif // defined(OS_WIN) |
| 642 | 646 |
| 643 } // namespace extensions | 647 } // namespace extensions |
| OLD | NEW |