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

Side by Side Diff: cc/delegated_renderer_layer_impl_unittest.cc

Issue 11474050: cc: Unify namespaces for all test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/delay_based_time_source_unittest.cc ('k') | cc/frame_rate_controller_unittest.cc » ('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 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 "cc/delegated_renderer_layer_impl.h" 5 #include "cc/delegated_renderer_layer_impl.h"
6 6
7 #include "cc/append_quads_data.h" 7 #include "cc/append_quads_data.h"
8 #include "cc/layer_tree_host_impl.h" 8 #include "cc/layer_tree_host_impl.h"
9 #include "cc/quad_sink.h" 9 #include "cc/quad_sink.h"
10 #include "cc/render_pass_draw_quad.h" 10 #include "cc/render_pass_draw_quad.h"
11 #include "cc/scoped_ptr_vector.h" 11 #include "cc/scoped_ptr_vector.h"
12 #include "cc/single_thread_proxy.h" 12 #include "cc/single_thread_proxy.h"
13 #include "cc/solid_color_draw_quad.h" 13 #include "cc/solid_color_draw_quad.h"
14 #include "cc/solid_color_layer_impl.h" 14 #include "cc/solid_color_layer_impl.h"
15 #include "cc/test/fake_layer_tree_host_impl.h" 15 #include "cc/test/fake_layer_tree_host_impl.h"
16 #include "cc/test/fake_layer_tree_host_impl_client.h" 16 #include "cc/test/fake_layer_tree_host_impl_client.h"
17 #include "cc/test/fake_output_surface.h" 17 #include "cc/test/fake_output_surface.h"
18 #include "cc/test/fake_proxy.h" 18 #include "cc/test/fake_proxy.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 "cc/test/render_pass_test_utils.h" 23 #include "cc/test/render_pass_test_utils.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/gfx/transform.h" 25 #include "ui/gfx/transform.h"
26 26
27 using WebKit::FakeWebGraphicsContext3D;
28
29 using namespace WebKitTests;
30
31 namespace cc { 27 namespace cc {
32 namespace { 28 namespace {
33 29
34 class DelegatedRendererLayerImplTest : public testing::Test { 30 class DelegatedRendererLayerImplTest : public testing::Test {
35 public: 31 public:
36 DelegatedRendererLayerImplTest() 32 DelegatedRendererLayerImplTest()
37 : m_proxy(scoped_ptr<Thread>(NULL)) 33 : m_proxy(scoped_ptr<Thread>(NULL))
38 , m_alwaysImplThreadAndMainThreadBlocked(&m_proxy) 34 , m_alwaysImplThreadAndMainThreadBlocked(&m_proxy)
39 { 35 {
40 LayerTreeSettings settings; 36 LayerTreeSettings settings;
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 gfx::Transform expected; 453 gfx::Transform expected;
458 expected.Translate(30, 30); 454 expected.Translate(30, 30);
459 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform); 455 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform);
460 456
461 m_hostImpl->drawLayers(frame); 457 m_hostImpl->drawLayers(frame);
462 m_hostImpl->didDrawAllLayers(frame); 458 m_hostImpl->didDrawAllLayers(frame);
463 } 459 }
464 460
465 } // namespace 461 } // namespace
466 } // namespace cc 462 } // namespace cc
OLDNEW
« no previous file with comments | « cc/delay_based_time_source_unittest.cc ('k') | cc/frame_rate_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698