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

Side by Side Diff: content/common/cc_messages_unittest.cc

Issue 1978053002: Move cc ParamTraits to cc/ipc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore size_t warnings Created 4 years, 7 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 | « content/common/cc_messages_perftest.cc ('k') | content/common/content_message_generator.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 "content/common/cc_messages.h"
6
7 #include <stddef.h> 5 #include <stddef.h>
8 #include <string.h> 6 #include <string.h>
9 #include <algorithm> 7 #include <algorithm>
10 #include <utility> 8 #include <utility>
11 9
12 #include "base/macros.h" 10 #include "base/macros.h"
13 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "cc/ipc/cc_param_traits.h"
14 #include "cc/output/compositor_frame.h" 13 #include "cc/output/compositor_frame.h"
14 #include "cc/quads/picture_draw_quad.h"
15 #include "cc/quads/render_pass_draw_quad.h"
15 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
16 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/khronos/GLES2/gl2ext.h"
19 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 19 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
20 20
21 #if defined(OS_POSIX) 21 #if defined(OS_POSIX)
22 #include "base/file_descriptor_posix.h" 22 #include "base/file_descriptor_posix.h"
23 #endif 23 #endif
24 24
25 using cc::DelegatedFrameData; 25 using cc::DelegatedFrameData;
26 using cc::DebugBorderDrawQuad; 26 using cc::DebugBorderDrawQuad;
27 using cc::DrawQuad; 27 using cc::DrawQuad;
28 using cc::FilterOperation; 28 using cc::FilterOperation;
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, 673 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg,
674 &iter, &frame_out)); 674 &iter, &frame_out));
675 675
676 ASSERT_EQ(2u, frame_out.resource_list.size()); 676 ASSERT_EQ(2u, frame_out.resource_list.size());
677 Compare(arbitrary_resource1, frame_out.resource_list[0]); 677 Compare(arbitrary_resource1, frame_out.resource_list[0]);
678 Compare(arbitrary_resource2, frame_out.resource_list[1]); 678 Compare(arbitrary_resource2, frame_out.resource_list[1]);
679 } 679 }
680 680
681 } // namespace 681 } // namespace
682 } // namespace content 682 } // namespace content
OLDNEW
« no previous file with comments | « content/common/cc_messages_perftest.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698