OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/extensions/api/system_network/system_network_api.h" | |
9 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/extensions/extension_function_test_utils.h" | 9 #include "chrome/browser/extensions/extension_function_test_utils.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_test_message_listener.h" | 11 #include "chrome/browser/extensions/extension_test_message_listener.h" |
13 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/extensions/application_launch.h" | 13 #include "chrome/browser/ui/extensions/application_launch.h" |
15 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
16 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "extensions/browser/api/system_network/system_network_api.h" |
17 | 17 |
18 using extensions::Extension; | 18 using extensions::Extension; |
19 using extensions::api::SystemNetworkGetNetworkInterfacesFunction; | 19 using extensions::core_api::SystemNetworkGetNetworkInterfacesFunction; |
20 using extensions::api::system_network::NetworkInterface; | 20 using extensions::core_api::system_network::NetworkInterface; |
21 | 21 |
22 namespace utils = extension_function_test_utils; | 22 namespace utils = extension_function_test_utils; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class SystemNetworkApiTest : public ExtensionApiTest { | 26 class SystemNetworkApiTest : public ExtensionApiTest { |
27 }; | 27 }; |
28 | 28 |
29 } // namespace | 29 } // namespace |
30 | 30 |
(...skipping 27 matching lines...) Expand all Loading... |
58 &network_interface)); | 58 &network_interface)); |
59 | 59 |
60 LOG(INFO) << "Network interface: address=" << network_interface.address | 60 LOG(INFO) << "Network interface: address=" << network_interface.address |
61 << ", name=" << network_interface.name | 61 << ", name=" << network_interface.name |
62 << ", prefix length=" << network_interface.prefix_length; | 62 << ", prefix length=" << network_interface.prefix_length; |
63 ASSERT_NE(std::string(), network_interface.address); | 63 ASSERT_NE(std::string(), network_interface.address); |
64 ASSERT_NE(std::string(), network_interface.name); | 64 ASSERT_NE(std::string(), network_interface.name); |
65 ASSERT_LE(0, network_interface.prefix_length); | 65 ASSERT_LE(0, network_interface.prefix_length); |
66 } | 66 } |
67 } | 67 } |
OLD | NEW |