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

Side by Side Diff: cc/CCLayerImplTest.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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/CCLayerImpl.cpp ('k') | cc/CCLayerIterator.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 "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerImpl.h" 7 #include "CCLayerImpl.h"
8 8
9 #include "CCSingleThreadProxy.h" 9 #include "CCSingleThreadProxy.h"
10 #include <gmock/gmock.h> 10 #include <gmock/gmock.h>
11 #include <gtest/gtest.h> 11 #include <gtest/gtest.h>
12 #include <public/WebFilterOperation.h> 12 #include <public/WebFilterOperation.h>
13 #include <public/WebFilterOperations.h> 13 #include <public/WebFilterOperations.h>
14 14
15 using namespace cc;
15 using namespace WebKit; 16 using namespace WebKit;
16 using namespace WebCore;
17 17
18 namespace { 18 namespace {
19 19
20 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(codeToTest) \ 20 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(codeToTest) \
21 root->resetAllChangeTrackingForSubtree(); \ 21 root->resetAllChangeTrackingForSubtree(); \
22 codeToTest; \ 22 codeToTest; \
23 EXPECT_TRUE(root->layerPropertyChanged()); \ 23 EXPECT_TRUE(root->layerPropertyChanged()); \
24 EXPECT_TRUE(child->layerPropertyChanged()); \ 24 EXPECT_TRUE(child->layerPropertyChanged()); \
25 EXPECT_TRUE(grandChild->layerPropertyChanged()); \ 25 EXPECT_TRUE(grandChild->layerPropertyChanged()); \
26 EXPECT_FALSE(root->layerSurfacePropertyChanged()) 26 EXPECT_FALSE(root->layerSurfacePropertyChanged())
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setOpaque(true)); 151 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setOpaque(true));
152 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setOpacity(arbitraryNumber)) ; 152 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setOpacity(arbitraryNumber)) ;
153 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDebugBorderColor(arbitrar yColor)); 153 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDebugBorderColor(arbitrar yColor));
154 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDebugBorderWidth(arbitrar yNumber)); 154 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDebugBorderWidth(arbitrar yNumber));
155 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDrawsContent(true)); 155 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setDrawsContent(true));
156 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setSublayerTransform(arbitra ryTransform)); 156 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setSublayerTransform(arbitra ryTransform));
157 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setBounds(arbitraryIntSize)) ; 157 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setBounds(arbitraryIntSize)) ;
158 } 158 }
159 159
160 } // namespace 160 } // namespace
OLDNEW
« no previous file with comments | « cc/CCLayerImpl.cpp ('k') | cc/CCLayerIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698