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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
14 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
15 #include "ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
16 #include "ppapi/host/host_message_context.h" | 17 #include "ppapi/host/host_message_context.h" |
17 #include "ppapi/host/resource_host.h" | 18 #include "ppapi/host/resource_host.h" |
18 #include "ppapi/host/resource_message_filter.h" | 19 #include "ppapi/host/resource_message_filter.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // destroyed before the task is run. | 216 // destroyed before the task is run. |
216 main_message_loop.task_runner()->PostTask( | 217 main_message_loop.task_runner()->PostTask( |
217 FROM_HERE, base::Bind(&ResourceMessageFilterTest::TestHandleMessageImpl, | 218 FROM_HERE, base::Bind(&ResourceMessageFilterTest::TestHandleMessageImpl, |
218 base::Unretained(this))); | 219 base::Unretained(this))); |
219 | 220 |
220 base::RunLoop().RunUntilIdle(); | 221 base::RunLoop().RunUntilIdle(); |
221 } | 222 } |
222 | 223 |
223 } // namespace proxy | 224 } // namespace proxy |
224 } // namespace ppapi | 225 } // namespace ppapi |
OLD | NEW |