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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index 14b225f78ccfc2df44633c01281c395624545e6b..6a6fcff0cb51538bf891bc861759a876646f757a 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -38,9 +38,9 @@ class LayerTreeHostScrollTestScrollSimple : public LayerTreeHostScrollTest {
virtual void Layout() OVERRIDE {
Layer* root = layer_tree_host()->root_layer();
- if (!layer_tree_host()->commit_number())
+ if (!layer_tree_host()->commit_number()) {
EXPECT_VECTOR_EQ(initial_scroll_, root->scroll_offset());
- else {
+ } else {
EXPECT_VECTOR_EQ(initial_scroll_ + scroll_amount_, root->scroll_offset());
// Pretend like Javascript updated the scroll position itself.
@@ -90,8 +90,8 @@ class LayerTreeHostScrollTestScrollSimple : public LayerTreeHostScrollTest {
MULTI_THREAD_TEST_F(LayerTreeHostScrollTestScrollSimple)
-class LayerTreeHostScrollTestScrollMultipleRedraw :
- public LayerTreeHostScrollTest {
+class LayerTreeHostScrollTestScrollMultipleRedraw
+ : public LayerTreeHostScrollTest {
public:
LayerTreeHostScrollTestScrollMultipleRedraw()
: initial_scroll_(40, 10),
@@ -234,9 +234,9 @@ class LayerTreeHostScrollTestFractionalScroll : public LayerTreeHostScrollTest {
MULTI_THREAD_TEST_F(LayerTreeHostScrollTestFractionalScroll)
-class LayerTreeHostScrollTestCaseWithChild :
- public LayerTreeHostScrollTest,
- public WebKit::WebLayerScrollClient {
+class LayerTreeHostScrollTestCaseWithChild
+ : public LayerTreeHostScrollTest,
+ public WebKit::WebLayerScrollClient {
public:
LayerTreeHostScrollTestCaseWithChild()
: initial_offset_(10, 20),
@@ -519,9 +519,9 @@ class ImplSidePaintingScrollTestSimple : public ImplSidePaintingScrollTest {
virtual void Layout() OVERRIDE {
Layer* root = layer_tree_host()->root_layer();
- if (!layer_tree_host()->commit_number())
+ if (!layer_tree_host()->commit_number()) {
EXPECT_VECTOR_EQ(root->scroll_offset(), initial_scroll_);
- else {
+ } else {
EXPECT_VECTOR_EQ(root->scroll_offset(),
initial_scroll_ + impl_thread_scroll1_);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698