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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "ppapi/c/pp_completion_callback.h" | 7 #include "ppapi/c/pp_completion_callback.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/shared_impl/callback_tracker.h" | 9 #include "ppapi/shared_impl/callback_tracker.h" |
10 #include "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
11 #include "ppapi/shared_impl/resource_tracker.h" | 11 #include "ppapi/shared_impl/resource_tracker.h" |
12 #include "ppapi/shared_impl/test_globals.h" | 12 #include "ppapi/shared_impl/test_globals.h" |
13 #include "ppapi/shared_impl/tracked_callback.h" | 13 #include "ppapi/shared_impl/tracked_callback.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Unref it again and do the same. | 257 // Unref it again and do the same. |
258 resource_tracker->ReleaseResource(new_resource_id); | 258 resource_tracker->ReleaseResource(new_resource_id); |
259 base::MessageLoop::current()->RunUntilIdle(); | 259 base::MessageLoop::current()->RunUntilIdle(); |
260 resource->CheckFinalState(); | 260 resource->CheckFinalState(); |
261 | 261 |
262 // This shouldn't be needed, but make sure there are no stranded tasks. | 262 // This shouldn't be needed, but make sure there are no stranded tasks. |
263 base::MessageLoop::current()->RunUntilIdle(); | 263 base::MessageLoop::current()->RunUntilIdle(); |
264 } | 264 } |
265 | 265 |
266 } // namespace ppapi | 266 } // namespace ppapi |
OLD | NEW |