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

Side by Side Diff: chrome/browser/extensions/api/networking_private/networking_private_apitest.cc

Issue 2891453002: Introduce networkingPrivate.getCertificateLists (Closed)
Patch Set: Rebase, fix histograms, remove from networking.onc Created 3 years, 7 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698