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

Side by Side Diff: cc/layer_tree_host_impl_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_impl.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 MOCK_METHOD0(getRequestableExtensionsCHROMIUM, WebKit::WebString()); 2173 MOCK_METHOD0(getRequestableExtensionsCHROMIUM, WebKit::WebString());
2174 MOCK_METHOD1(enable, void(WebKit::WGC3Denum cap)); 2174 MOCK_METHOD1(enable, void(WebKit::WGC3Denum cap));
2175 MOCK_METHOD1(disable, void(WebKit::WGC3Denum cap)); 2175 MOCK_METHOD1(disable, void(WebKit::WGC3Denum cap));
2176 MOCK_METHOD4(scissor, void(WebKit::WGC3Dint x, WebKit::WGC3Dint y, WebKit::W GC3Dsizei width, WebKit::WGC3Dsizei height)); 2176 MOCK_METHOD4(scissor, void(WebKit::WGC3Dint x, WebKit::WGC3Dint y, WebKit::W GC3Dsizei width, WebKit::WGC3Dsizei height));
2177 }; 2177 };
2178 2178
2179 class MockContextHarness { 2179 class MockContextHarness {
2180 private: 2180 private:
2181 MockContext* m_context; 2181 MockContext* m_context;
2182 public: 2182 public:
2183 MockContextHarness(MockContext* context) 2183 explicit MockContextHarness(MockContext* context)
2184 : m_context(context) 2184 : m_context(context)
2185 { 2185 {
2186 // Catch "uninteresting" calls 2186 // Catch "uninteresting" calls
2187 EXPECT_CALL(*m_context, useProgram(_)) 2187 EXPECT_CALL(*m_context, useProgram(_))
2188 .Times(0); 2188 .Times(0);
2189 2189
2190 EXPECT_CALL(*m_context, drawElements(_, _, _, _)) 2190 EXPECT_CALL(*m_context, drawElements(_, _, _, _))
2191 .Times(0); 2191 .Times(0);
2192 2192
2193 // These are not asserted 2193 // These are not asserted
(...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after
4340 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize()); 4340 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize());
4341 drawFrameAndTestDamage(noDamage); 4341 drawFrameAndTestDamage(noDamage);
4342 } 4342 }
4343 4343
4344 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, 4344 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests,
4345 LayerTreeHostImplTest, 4345 LayerTreeHostImplTest,
4346 ::testing::Values(false, true)); 4346 ::testing::Values(false, true));
4347 4347
4348 } // namespace 4348 } // namespace
4349 } // namespace cc 4349 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698