| 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/proxy/raw_var_data.h" | 5 #include "ppapi/proxy/raw_var_data.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
| 13 #include "ppapi/shared_impl/array_var.h" | 13 #include "ppapi/shared_impl/array_var.h" |
| 14 #include "ppapi/shared_impl/dictionary_var.h" | 14 #include "ppapi/shared_impl/dictionary_var.h" |
| 15 #include "ppapi/shared_impl/ppapi_globals.h" | 15 #include "ppapi/shared_impl/ppapi_globals.h" |
| 16 #include "ppapi/shared_impl/proxy_lock.h" | 16 #include "ppapi/shared_impl/proxy_lock.h" |
| 17 #include "ppapi/shared_impl/resource_var.h" | 17 #include "ppapi/shared_impl/resource_var.h" |
| 18 #include "ppapi/shared_impl/scoped_pp_var.h" | 18 #include "ppapi/shared_impl/scoped_pp_var.h" |
| 19 #include "ppapi/shared_impl/test_globals.h" | 19 #include "ppapi/shared_impl/test_globals.h" |
| 20 #include "ppapi/shared_impl/unittest_utils.h" | 20 #include "ppapi/shared_impl/test_utils.h" |
| 21 #include "ppapi/shared_impl/var.h" | 21 #include "ppapi/shared_impl/var.h" |
| 22 #include "ppapi/shared_impl/var_tracker.h" | 22 #include "ppapi/shared_impl/var_tracker.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace ppapi { | 25 namespace ppapi { |
| 26 namespace proxy { | 26 namespace proxy { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 void DefaultHandleWriter(IPC::Message* m, const SerializedHandle& handle) { | 30 void DefaultHandleWriter(IPC::Message* m, const SerializedHandle& handle) { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ScopedPPVar::PassRef(), | 193 ScopedPPVar::PassRef(), |
| 194 PpapiGlobals::Get()->GetVarTracker()->MakeResourcePPVar(34)); | 194 PpapiGlobals::Get()->GetVarTracker()->MakeResourcePPVar(34)); |
| 195 EXPECT_TRUE(WriteReadAndCompare(resource.get())); | 195 EXPECT_TRUE(WriteReadAndCompare(resource.get())); |
| 196 | 196 |
| 197 // TODO(mgiuca): Test a host resource with an IPC::Message. It is currently a | 197 // TODO(mgiuca): Test a host resource with an IPC::Message. It is currently a |
| 198 // checkfail to deserialize such a resource. | 198 // checkfail to deserialize such a resource. |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace proxy | 201 } // namespace proxy |
| 202 } // namespace ppapi | 202 } // namespace ppapi |
| OLD | NEW |