| 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> |
| 6 |
| 5 #include "ppapi/proxy/ppapi_proxy_test.h" | 7 #include "ppapi/proxy/ppapi_proxy_test.h" |
| 6 | |
| 7 #include "ppapi/proxy/proxy_object_var.h" | 8 #include "ppapi/proxy/proxy_object_var.h" |
| 8 #include "ppapi/proxy/serialized_var.h" | 9 #include "ppapi/proxy/serialized_var.h" |
| 9 #include "ppapi/shared_impl/proxy_lock.h" | 10 #include "ppapi/shared_impl/proxy_lock.h" |
| 10 | 11 |
| 11 namespace ppapi { | 12 namespace ppapi { |
| 12 namespace proxy { | 13 namespace proxy { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 PP_Var MakeObjectVar(int64_t object_id) { | 17 PP_Var MakeObjectVar(int64_t object_id) { |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 379 } |
| 379 | 380 |
| 380 // When the ReturnValue object goes out of scope, it should have sent a | 381 // When the ReturnValue object goes out of scope, it should have sent a |
| 381 // release message to the browser. | 382 // release message to the browser. |
| 382 EXPECT_EQ(-1, var_tracker().GetRefCountForObject(plugin_object)); | 383 EXPECT_EQ(-1, var_tracker().GetRefCountForObject(plugin_object)); |
| 383 EXPECT_EQ(1u, sink().message_count()); | 384 EXPECT_EQ(1u, sink().message_count()); |
| 384 } | 385 } |
| 385 | 386 |
| 386 } // namespace proxy | 387 } // namespace proxy |
| 387 } // namespace ppapi | 388 } // namespace ppapi |
| OLD | NEW |