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

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

Issue 1283613005: Add networkingPrivate.getThirdPartyVpnProviderList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_515987_cr_network_list
Patch Set: Rebase Created 5 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
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 <map> 5 #include <map>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 449 }
450 450
451 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTest, UnlockCellularSim) { 451 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTest, UnlockCellularSim) {
452 EXPECT_TRUE(RunNetworkingSubtest("unlockCellularSim")) << message_; 452 EXPECT_TRUE(RunNetworkingSubtest("unlockCellularSim")) << message_;
453 } 453 }
454 454
455 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTest, SetCellularSimState) { 455 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTest, SetCellularSimState) {
456 EXPECT_TRUE(RunNetworkingSubtest("setCellularSimState")) << message_; 456 EXPECT_TRUE(RunNetworkingSubtest("setCellularSimState")) << message_;
457 } 457 }
458 458
459 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTest, GetThirdPartyVPNProviders) {
460 EXPECT_TRUE(RunNetworkingSubtest("getThirdPartyVPNProviders")) << message_;
461 }
462
459 // Test failure case 463 // Test failure case
460 464
461 class NetworkingPrivateApiTestFail : public NetworkingPrivateApiTest { 465 class NetworkingPrivateApiTestFail : public NetworkingPrivateApiTest {
462 public: 466 public:
463 NetworkingPrivateApiTestFail() { s_test_delegate_->set_fail(true); } 467 NetworkingPrivateApiTestFail() { s_test_delegate_->set_fail(true); }
464 468
465 protected: 469 protected:
466 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateApiTestFail); 470 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateApiTestFail);
467 }; 471 };
468 472
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 } 553 }
550 554
551 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, UnlockCellularSim) { 555 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, UnlockCellularSim) {
552 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_; 556 EXPECT_FALSE(RunNetworkingSubtest("unlockCellularSim")) << message_;
553 } 557 }
554 558
555 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) { 559 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, SetCellularSimState) {
556 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_; 560 EXPECT_FALSE(RunNetworkingSubtest("setCellularSimState")) << message_;
557 } 561 }
558 562
563 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail,
564 GetThirdPartyVPNProviders) {
565 EXPECT_FALSE(RunNetworkingSubtest("getThirdPartyVPNProviders")) << message_;
566 }
567
559 #endif // defined(OS_WIN) 568 #endif // defined(OS_WIN)
560 569
561 } // namespace extensions 570 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698