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

Side by Side Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp

Issue 2849903002: Replace ASSERT_NOT_REACHED with NOTREACHED in platform/ (Closed)
Patch Set: rebase Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/testing/WebLayerTreeViewImplForTesting.h" 5 #include "platform/testing/WebLayerTreeViewImplForTesting.h"
6 6
7 #include "base/threading/thread_task_runner_handle.h" 7 #include "base/threading/thread_task_runner_handle.h"
8 #include "cc/animation/animation_host.h" 8 #include "cc/animation/animation_host.h"
9 #include "cc/animation/animation_timeline.h" 9 #include "cc/animation/animation_timeline.h"
10 #include "cc/blink/web_layer_impl.h" 10 #include "cc/blink/web_layer_impl.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 void WebLayerTreeViewImplForTesting::RecordWheelAndTouchScrollingCount( 137 void WebLayerTreeViewImplForTesting::RecordWheelAndTouchScrollingCount(
138 bool has_scrolled_by_wheel, 138 bool has_scrolled_by_wheel,
139 bool has_scrolled_by_touch) {} 139 bool has_scrolled_by_touch) {}
140 140
141 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() { 141 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() {
142 // Intentionally do not create and set an CompositorFrameSink. 142 // Intentionally do not create and set an CompositorFrameSink.
143 } 143 }
144 144
145 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() { 145 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() {
146 ASSERT_NOT_REACHED(); 146 NOTREACHED();
147 } 147 }
148 148
149 void WebLayerTreeViewImplForTesting::RegisterViewportLayers( 149 void WebLayerTreeViewImplForTesting::RegisterViewportLayers(
150 const blink::WebLayer* overscroll_elasticity_layer, 150 const blink::WebLayer* overscroll_elasticity_layer,
151 const blink::WebLayer* page_scale_layer, 151 const blink::WebLayer* page_scale_layer,
152 const blink::WebLayer* inner_viewport_scroll_layer, 152 const blink::WebLayer* inner_viewport_scroll_layer,
153 const blink::WebLayer* outer_viewport_scroll_layer) { 153 const blink::WebLayer* outer_viewport_scroll_layer) {
154 layer_tree_host_->RegisterViewportLayers( 154 layer_tree_host_->RegisterViewportLayers(
155 overscroll_elasticity_layer ? static_cast<const cc_blink::WebLayerImpl*>( 155 overscroll_elasticity_layer ? static_cast<const cc_blink::WebLayerImpl*>(
156 overscroll_elasticity_layer) 156 overscroll_elasticity_layer)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 bool WebLayerTreeViewImplForTesting::HaveScrollEventHandlers() const { 202 bool WebLayerTreeViewImplForTesting::HaveScrollEventHandlers() const {
203 return layer_tree_host_->have_scroll_event_handlers(); 203 return layer_tree_host_->have_scroll_event_handlers();
204 } 204 }
205 205
206 bool WebLayerTreeViewImplForTesting::IsForSubframe() { 206 bool WebLayerTreeViewImplForTesting::IsForSubframe() {
207 return false; 207 return false;
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698