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

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: Fix gyp 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
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"
15 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
16 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/khronos/GLES2/gl2ext.h" 17 #include "third_party/khronos/GLES2/gl2ext.h"
19 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 18 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
20 19
21 #if defined(OS_POSIX) 20 #if defined(OS_POSIX)
22 #include "base/file_descriptor_posix.h" 21 #include "base/file_descriptor_posix.h"
23 #endif 22 #endif
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, 672 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg,
674 &iter, &frame_out)); 673 &iter, &frame_out));
675 674
676 ASSERT_EQ(2u, frame_out.resource_list.size()); 675 ASSERT_EQ(2u, frame_out.resource_list.size());
677 Compare(arbitrary_resource1, frame_out.resource_list[0]); 676 Compare(arbitrary_resource1, frame_out.resource_list[0]);
678 Compare(arbitrary_resource2, frame_out.resource_list[1]); 677 Compare(arbitrary_resource2, frame_out.resource_list[1]);
679 } 678 }
680 679
681 } // namespace 680 } // namespace
682 } // namespace content 681 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698