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_case.h" | 5 #include "ppapi/tests/test_case.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 #include <sstream> | 11 #include <sstream> |
11 | 12 |
12 #include "ppapi/cpp/core.h" | 13 #include "ppapi/cpp/core.h" |
13 #include "ppapi/cpp/module.h" | 14 #include "ppapi/cpp/module.h" |
14 #include "ppapi/tests/pp_thread.h" | 15 #include "ppapi/tests/pp_thread.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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 void (*thread_func)(void*), | 249 void (*thread_func)(void*), |
249 void* thread_param, | 250 void* thread_param, |
250 const PPB_Testing_Private* testing_interface) { | 251 const PPB_Testing_Private* testing_interface) { |
251 PP_Thread thread; | 252 PP_Thread thread; |
252 PP_CreateThread(&thread, thread_func, thread_param); | 253 PP_CreateThread(&thread, thread_func, thread_param); |
253 // Run a message loop so pepper calls can be dispatched. The background | 254 // Run a message loop so pepper calls can be dispatched. The background |
254 // thread will set result_ and make us Quit when it's done. | 255 // thread will set result_ and make us Quit when it's done. |
255 testing_interface->RunMessageLoop(instance_->pp_instance()); | 256 testing_interface->RunMessageLoop(instance_->pp_instance()); |
256 PP_JoinThread(thread); | 257 PP_JoinThread(thread); |
257 } | 258 } |
OLD | NEW |