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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "base/time.h" | 8 #include "base/time/time.h" |
9 #include "ppapi/c/dev/ppb_var_deprecated.h" | 9 #include "ppapi/c/dev/ppb_var_deprecated.h" |
10 #include "ppapi/c/dev/ppp_class_deprecated.h" | 10 #include "ppapi/c/dev/ppp_class_deprecated.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/c/ppb_var.h" | 12 #include "ppapi/c/ppb_var.h" |
13 #include "ppapi/c/ppp_instance.h" | 13 #include "ppapi/c/ppp_instance.h" |
14 #include "ppapi/c/private/ppp_instance_private.h" | 14 #include "ppapi/c/private/ppp_instance_private.h" |
15 #include "ppapi/proxy/host_dispatcher.h" | 15 #include "ppapi/proxy/host_dispatcher.h" |
16 #include "ppapi/proxy/interface_list.h" | 16 #include "ppapi/proxy/interface_list.h" |
17 #include "ppapi/proxy/ppapi_proxy_test.h" | 17 #include "ppapi/proxy/ppapi_proxy_test.h" |
18 #include "ppapi/shared_impl/ppapi_permissions.h" | 18 #include "ppapi/shared_impl/ppapi_permissions.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Destroy the instance. DidDestroy above decrements the reference count for | 201 // Destroy the instance. DidDestroy above decrements the reference count for |
202 // instance_obj, so it should also be destroyed. | 202 // instance_obj, so it should also be destroyed. |
203 ppp_instance->DidDestroy(kInstance); | 203 ppp_instance->DidDestroy(kInstance); |
204 EXPECT_EQ(-1, plugin().var_tracker().GetRefCountForObject(instance_obj)); | 204 EXPECT_EQ(-1, plugin().var_tracker().GetRefCountForObject(instance_obj)); |
205 EXPECT_EQ(-1, host().var_tracker().GetRefCountForObject(host_pp_var)); | 205 EXPECT_EQ(-1, host().var_tracker().GetRefCountForObject(host_pp_var)); |
206 } | 206 } |
207 | 207 |
208 } // namespace proxy | 208 } // namespace proxy |
209 } // namespace ppapi | 209 } // namespace ppapi |
210 | 210 |
OLD | NEW |