OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ppapi/tests/test_network_monitor.h" | 5 #include "ppapi/tests/test_network_monitor.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
10 #include "ppapi/cpp/instance_handle.h" | 11 #include "ppapi/cpp/instance_handle.h" |
11 #include "ppapi/cpp/module.h" | 12 #include "ppapi/cpp/module.h" |
12 #include "ppapi/cpp/net_address.h" | 13 #include "ppapi/cpp/net_address.h" |
13 #include "ppapi/cpp/network_list.h" | 14 #include "ppapi/cpp/network_list.h" |
14 #include "ppapi/cpp/network_monitor.h" | 15 #include "ppapi/cpp/network_monitor.h" |
15 #include "ppapi/tests/test_utils.h" | 16 #include "ppapi/tests/test_utils.h" |
16 #include "ppapi/tests/testing_instance.h" | 17 #include "ppapi/tests/testing_instance.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 instance_->pp_instance()); | 177 instance_->pp_instance()); |
177 test_callback.SetDelegate(&deletion_delegate); | 178 test_callback.SetDelegate(&deletion_delegate); |
178 test_callback.WaitForResult( | 179 test_callback.WaitForResult( |
179 network_monitor->UpdateNetworkList(test_callback.GetCallback())); | 180 network_monitor->UpdateNetworkList(test_callback.GetCallback())); |
180 | 181 |
181 ASSERT_EQ(PP_OK, test_callback.result()); | 182 ASSERT_EQ(PP_OK, test_callback.result()); |
182 ASSERT_SUBTEST_SUCCESS(VerifyNetworkList(test_callback.output())); | 183 ASSERT_SUBTEST_SUCCESS(VerifyNetworkList(test_callback.output())); |
183 | 184 |
184 PASS(); | 185 PASS(); |
185 } | 186 } |
OLD | NEW |