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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 | 77 |
78 void CreateNetwork(bool shared, | 78 void CreateNetwork(bool shared, |
79 std::unique_ptr<base::DictionaryValue> properties, | 79 std::unique_ptr<base::DictionaryValue> properties, |
80 const StringCallback& success_callback, | 80 const StringCallback& success_callback, |
81 const FailureCallback& failure_callback) override { | 81 const FailureCallback& failure_callback) override { |
82 StringResult(success_callback, failure_callback); | 82 StringResult(success_callback, failure_callback); |
83 } | 83 } |
84 | 84 |
85 void ForgetNetwork(const std::string& guid, | 85 void ForgetNetwork(const std::string& guid, |
| 86 bool allow_forget_shared_network, |
86 const VoidCallback& success_callback, | 87 const VoidCallback& success_callback, |
87 const FailureCallback& failure_callback) override { | 88 const FailureCallback& failure_callback) override { |
88 VoidResult(success_callback, failure_callback); | 89 VoidResult(success_callback, failure_callback); |
89 } | 90 } |
90 | 91 |
91 void GetNetworks(const std::string& network_type, | 92 void GetNetworks(const std::string& network_type, |
92 bool configured_only, | 93 bool configured_only, |
93 bool visible_only, | 94 bool visible_only, |
94 int limit, | 95 int limit, |
95 const NetworkListCallback& success_callback, | 96 const NetworkListCallback& success_callback, |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_; | 634 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_; |
634 } | 635 } |
635 | 636 |
636 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) { | 637 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) { |
637 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_; | 638 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_; |
638 } | 639 } |
639 | 640 |
640 #endif // defined(OS_WIN) | 641 #endif // defined(OS_WIN) |
641 | 642 |
642 } // namespace extensions | 643 } // namespace extensions |
OLD | NEW |