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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "platform/graphics/CompositorMutableState.h" 5 #include "platform/graphics/CompositorMutableState.h"
6 6
7 #include <memory>
7 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
8 #include "cc/test/fake_compositor_frame_sink.h" 9 #include "cc/test/fake_compositor_frame_sink.h"
9 #include "cc/test/fake_impl_task_runner_provider.h" 10 #include "cc/test/fake_impl_task_runner_provider.h"
10 #include "cc/test/fake_layer_tree_host_impl.h" 11 #include "cc/test/fake_layer_tree_host_impl.h"
11 #include "cc/test/test_shared_bitmap_manager.h" 12 #include "cc/test/test_shared_bitmap_manager.h"
12 #include "cc/test/test_task_graph_runner.h" 13 #include "cc/test/test_task_graph_runner.h"
13 #include "cc/trees/layer_tree_host_impl.h" 14 #include "cc/trees/layer_tree_host_impl.h"
14 #include "cc/trees/layer_tree_impl.h" 15 #include "cc/trees/layer_tree_impl.h"
15 #include "platform/graphics/CompositorElementId.h" 16 #include "platform/graphics/CompositorElementId.h"
16 #include "platform/graphics/CompositorMutableProperties.h" 17 #include "platform/graphics/CompositorMutableProperties.h"
17 #include "platform/graphics/CompositorMutableStateProvider.h" 18 #include "platform/graphics/CompositorMutableStateProvider.h"
18 #include "platform/graphics/CompositorMutation.h" 19 #include "platform/graphics/CompositorMutation.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 #include <memory>
21 21
22 namespace blink { 22 namespace blink {
23 23
24 using cc::FakeImplTaskRunnerProvider; 24 using cc::FakeImplTaskRunnerProvider;
25 using cc::FakeLayerTreeHostImpl; 25 using cc::FakeLayerTreeHostImpl;
26 using cc::FakeCompositorFrameSink; 26 using cc::FakeCompositorFrameSink;
27 using cc::LayerImpl; 27 using cc::LayerImpl;
28 using cc::LayerTreeSettings; 28 using cc::LayerTreeSettings;
29 using cc::TestTaskGraphRunner; 29 using cc::TestTaskGraphRunner;
30 using cc::TestSharedBitmapManager; 30 using cc::TestSharedBitmapManager;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 EXPECT_TRUE(mutation.IsScrollLeftMutated()); 146 EXPECT_TRUE(mutation.IsScrollLeftMutated());
147 EXPECT_TRUE(mutation.IsScrollTopMutated()); 147 EXPECT_TRUE(mutation.IsScrollTopMutated());
148 148
149 EXPECT_EQ(0.5, mutation.Opacity()); 149 EXPECT_EQ(0.5, mutation.Opacity());
150 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.Transform()).ToString()); 150 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.Transform()).ToString());
151 EXPECT_EQ(1.0, mutation.ScrollLeft()); 151 EXPECT_EQ(1.0, mutation.ScrollLeft());
152 EXPECT_EQ(1.0, mutation.ScrollTop()); 152 EXPECT_EQ(1.0, mutation.ScrollTop());
153 } 153 }
154 154
155 } // namespace blink 155 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698