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

Side by Side Diff: cc/delegated_renderer_layer_impl_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/delegated_renderer_layer_impl.h" 7 #include "cc/delegated_renderer_layer_impl.h"
8 8
9 #include "cc/append_quads_data.h" 9 #include "cc/append_quads_data.h"
10 #include "cc/layer_tree_host_impl.h" 10 #include "cc/layer_tree_host_impl.h"
11 #include "cc/quad_sink.h" 11 #include "cc/quad_sink.h"
12 #include "cc/render_pass_draw_quad.h" 12 #include "cc/render_pass_draw_quad.h"
13 #include "cc/scoped_ptr_vector.h" 13 #include "cc/scoped_ptr_vector.h"
14 #include "cc/single_thread_proxy.h" 14 #include "cc/single_thread_proxy.h"
15 #include "cc/solid_color_draw_quad.h" 15 #include "cc/solid_color_draw_quad.h"
16 #include "cc/solid_color_layer_impl.h" 16 #include "cc/solid_color_layer_impl.h"
17 #include "cc/test/fake_proxy.h" 17 #include "cc/test/fake_proxy.h"
18 #include "cc/test/fake_web_compositor_output_surface.h" 18 #include "cc/test/fake_web_compositor_output_surface.h"
19 #include "cc/test/fake_web_graphics_context_3d.h" 19 #include "cc/test/fake_web_graphics_context_3d.h"
20 #include "cc/test/geometry_test_utils.h" 20 #include "cc/test/geometry_test_utils.h"
21 #include "cc/test/mock_quad_culler.h" 21 #include "cc/test/mock_quad_culler.h"
22 #include "cc/test/render_pass_test_common.h" 22 #include "cc/test/render_pass_test_common.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include <public/WebTransformationMatrix.h> 24 #include <public/WebTransformationMatrix.h>
25 25
26 using WebKit::FakeWebCompositorOutputSurface; 26 using WebKit::FakeWebCompositorOutputSurface;
27 using WebKit::FakeWebGraphicsContext3D; 27 using WebKit::FakeWebGraphicsContext3D;
28 using WebKit::WebTransformationMatrix; 28 using WebKit::WebTransformationMatrix;
29 29
30 using namespace cc;
31 using namespace WebKitTests; 30 using namespace WebKitTests;
32 31
32 namespace cc {
33 namespace { 33 namespace {
34 34
35 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient { 35 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient {
36 public: 36 public:
37 DelegatedRendererLayerImplTest() 37 DelegatedRendererLayerImplTest()
38 : m_proxy(scoped_ptr<Thread>(NULL)) 38 : m_proxy(scoped_ptr<Thread>(NULL))
39 , m_alwaysImplThreadAndMainThreadBlocked(&m_proxy) 39 , m_alwaysImplThreadAndMainThreadBlocked(&m_proxy)
40 { 40 {
41 LayerTreeSettings settings; 41 LayerTreeSettings settings;
42 settings.minimumOcclusionTrackingSize = gfx::Size(); 42 settings.minimumOcclusionTrackingSize = gfx::Size();
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 EXPECT_EQ(sharedState, quadList[2]->sharedQuadState()); 447 EXPECT_EQ(sharedState, quadList[2]->sharedQuadState());
448 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); 448 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState());
449 449
450 // The state should be transformed only once. 450 // The state should be transformed only once.
451 EXPECT_RECT_EQ(gfx::Rect(30, 30, 50, 50), sharedState->clippedRectInTarget); 451 EXPECT_RECT_EQ(gfx::Rect(30, 30, 50, 50), sharedState->clippedRectInTarget);
452 WebTransformationMatrix expected; 452 WebTransformationMatrix expected;
453 expected.translate(30, 30); 453 expected.translate(30, 30);
454 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); 454 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform);
455 } 455 }
456 456
457 } // annonymous namespace 457 } // namespace
458 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698