Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: ppapi/proxy/raw_var_data_unittest.cc

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/raw_var_data.cc ('k') | ppapi/proxy/resource_message_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/raw_var_data.cc ('k') | ppapi/proxy/resource_message_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698