| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "ppapi/shared_impl/test_utils.h" | 24 #include "ppapi/shared_impl/test_utils.h" |
| 25 #include "ppapi/shared_impl/var.h" | 25 #include "ppapi/shared_impl/var.h" |
| 26 #include "ppapi/shared_impl/var_tracker.h" | 26 #include "ppapi/shared_impl/var_tracker.h" |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
| 28 | 28 |
| 29 namespace ppapi { | 29 namespace ppapi { |
| 30 namespace proxy { | 30 namespace proxy { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 void DefaultHandleWriter(IPC::Message* m, const SerializedHandle& handle) { | 34 void DefaultHandleWriter(base::Pickle* m, const SerializedHandle& handle) { |
| 35 IPC::ParamTraits<SerializedHandle>::Write(m, handle); | 35 IPC::ParamTraits<SerializedHandle>::Write(m, handle); |
| 36 } | 36 } |
| 37 | 37 |
| 38 class RawVarDataTest : public testing::Test { | 38 class RawVarDataTest : public testing::Test { |
| 39 public: | 39 public: |
| 40 RawVarDataTest() {} | 40 RawVarDataTest() {} |
| 41 ~RawVarDataTest() {} | 41 ~RawVarDataTest() {} |
| 42 | 42 |
| 43 // testing::Test implementation. | 43 // testing::Test implementation. |
| 44 virtual void SetUp() { | 44 virtual void SetUp() { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 ScopedPPVar::PassRef(), | 198 ScopedPPVar::PassRef(), |
| 199 PpapiGlobals::Get()->GetVarTracker()->MakeResourcePPVar(34)); | 199 PpapiGlobals::Get()->GetVarTracker()->MakeResourcePPVar(34)); |
| 200 EXPECT_TRUE(WriteReadAndCompare(resource.get())); | 200 EXPECT_TRUE(WriteReadAndCompare(resource.get())); |
| 201 | 201 |
| 202 // TODO(mgiuca): Test a host resource with an IPC::Message. It is currently a | 202 // TODO(mgiuca): Test a host resource with an IPC::Message. It is currently a |
| 203 // checkfail to deserialize such a resource. | 203 // checkfail to deserialize such a resource. |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace proxy | 206 } // namespace proxy |
| 207 } // namespace ppapi | 207 } // namespace ppapi |
| OLD | NEW |