| 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 <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 "chrome/browser/extensions/api/networking_private/networking_private_de
legate.h" | |
| 11 #include "chrome/browser/extensions/api/networking_private/networking_private_de
legate_factory.h" | |
| 12 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
| 13 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
| 14 #include "components/onc/onc_constants.h" | 12 #include "components/onc/onc_constants.h" |
| 15 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
| 14 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" |
| 15 #include "extensions/browser/api/networking_private/networking_private_delegate_
factory.h" |
| 16 #include "extensions/common/switches.h" | 16 #include "extensions/common/switches.h" |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 // This tests just the interface for the networkingPrivate API, i.e. it ensures | 20 // This tests just the interface for the networkingPrivate API, i.e. it ensures |
| 21 // that the delegate methods are called as expected. | 21 // that the delegate methods are called as expected. |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const char kFailure[] = "Failure"; | 25 const char kFailure[] = "Failure"; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 EXPECT_FALSE(RunNetworkingSubtest("getWifiTDLSStatus")) << message_; | 461 EXPECT_FALSE(RunNetworkingSubtest("getWifiTDLSStatus")) << message_; |
| 462 } | 462 } |
| 463 | 463 |
| 464 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, GetCaptivePortalStatus) { | 464 IN_PROC_BROWSER_TEST_F(NetworkingPrivateApiTestFail, GetCaptivePortalStatus) { |
| 465 EXPECT_FALSE(RunNetworkingSubtest("getCaptivePortalStatus")) << message_; | 465 EXPECT_FALSE(RunNetworkingSubtest("getCaptivePortalStatus")) << message_; |
| 466 } | 466 } |
| 467 | 467 |
| 468 #endif // defined(OS_WIN) | 468 #endif // defined(OS_WIN) |
| 469 | 469 |
| 470 } // namespace extensions | 470 } // namespace extensions |
| OLD | NEW |