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

Side by Side Diff: cc/layer_iterator_unittest.cc

Issue 11410022: cc: Remove forbidden using namespace directives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/layer_iterator.h" 7 #include "cc/layer_iterator.h"
8 8
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 #include "cc/layer_tree_host_common.h" 10 #include "cc/layer_tree_host_common.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include <public/WebTransformationMatrix.h> 13 #include <public/WebTransformationMatrix.h>
14 14
15 using namespace cc;
16 using WebKit::WebTransformationMatrix; 15 using WebKit::WebTransformationMatrix;
17 using ::testing::Mock; 16 using ::testing::Mock;
18 using ::testing::_; 17 using ::testing::_;
19 using ::testing::AtLeast; 18 using ::testing::AtLeast;
20 using ::testing::AnyNumber; 19 using ::testing::AnyNumber;
21 20
21 namespace cc {
22 namespace { 22 namespace {
23 23
24 class TestLayer : public Layer { 24 class TestLayer : public Layer {
25 public: 25 public:
26 static scoped_refptr<TestLayer> create() { return make_scoped_refptr(new Tes tLayer()); } 26 static scoped_refptr<TestLayer> create() { return make_scoped_refptr(new Tes tLayer()); }
27 27
28 int m_countRepresentingTargetSurface; 28 int m_countRepresentingTargetSurface;
29 int m_countRepresentingContributingSurface; 29 int m_countRepresentingContributingSurface;
30 int m_countRepresentingItself; 30 int m_countRepresentingItself;
31 31
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 EXPECT_COUNT(root1, -1, -1, 12); 245 EXPECT_COUNT(root1, -1, -1, 12);
246 EXPECT_COUNT(root2, 10, 11, -1); 246 EXPECT_COUNT(root2, 10, 11, -1);
247 EXPECT_COUNT(root21, -1, -1, 9); 247 EXPECT_COUNT(root21, -1, -1, 9);
248 EXPECT_COUNT(root22, 7, 8, 6); 248 EXPECT_COUNT(root22, 7, 8, 6);
249 EXPECT_COUNT(root221, -1, -1, 5); 249 EXPECT_COUNT(root221, -1, -1, 5);
250 EXPECT_COUNT(root23, 3, 4, 2); 250 EXPECT_COUNT(root23, 3, 4, 2);
251 EXPECT_COUNT(root231, -1, -1, 1); 251 EXPECT_COUNT(root231, -1, -1, 1);
252 EXPECT_COUNT(root3, -1, -1, 0); 252 EXPECT_COUNT(root3, -1, -1, 0);
253 } 253 }
254 254
255 } // anonymous namespace 255 } // namespace
256 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698