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

Side by Side Diff: cc/layers/layer_impl_unittest.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_iterator.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "cc/test/fake_impl_proxy.h" 7 #include "cc/test/fake_impl_proxy.h"
8 #include "cc/test/fake_layer_tree_host_impl.h" 8 #include "cc/test/fake_layer_tree_host_impl.h"
9 #include "cc/test/fake_output_surface.h" 9 #include "cc/test/fake_output_surface.h"
10 #include "cc/trees/layer_tree_impl.h" 10 #include "cc/trees/layer_tree_impl.h"
11 #include "cc/trees/single_thread_proxy.h" 11 #include "cc/trees/single_thread_proxy.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
16 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 16 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
17 17
18 using namespace WebKit; 18 using WebKit::WebFilterOperation;
19 using WebKit::WebFilterOperations;
19 20
20 namespace cc { 21 namespace cc {
21 namespace { 22 namespace {
22 23
23 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \ 24 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \
24 root->ResetAllChangeTrackingForSubtree(); \ 25 root->ResetAllChangeTrackingForSubtree(); \
25 code_to_test; \ 26 code_to_test; \
26 EXPECT_TRUE(root->LayerPropertyChanged()); \ 27 EXPECT_TRUE(root->LayerPropertyChanged()); \
27 EXPECT_TRUE(child->LayerPropertyChanged()); \ 28 EXPECT_TRUE(child->LayerPropertyChanged()); \
28 EXPECT_TRUE(grand_child->LayerPropertyChanged()); \ 29 EXPECT_TRUE(grand_child->LayerPropertyChanged()); \
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetOpacity(arbitrary_number)); 294 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetOpacity(arbitrary_number));
294 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( 295 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(
295 root->SetTransform(arbitrary_transform)); 296 root->SetTransform(arbitrary_transform));
296 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( 297 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(
297 root->SetSublayerTransform(arbitrary_transform)); 298 root->SetSublayerTransform(arbitrary_transform));
298 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetBounds(arbitrary_size)); 299 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetBounds(arbitrary_size));
299 } 300 }
300 301
301 } // namespace 302 } // namespace
302 } // namespace cc 303 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698