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

Side by Side Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.cc

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Fixed Ozone build. Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/media/capture/web_contents_video_capture_device.h" 5 #include "content/browser/media/capture/web_contents_video_capture_device.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 bool swapped_out, 276 bool swapped_out,
277 CaptureTestSourceController* controller) 277 CaptureTestSourceController* controller)
278 : TestRenderViewHost(instance, 278 : TestRenderViewHost(instance,
279 base::WrapUnique(new CaptureTestRenderWidgetHost( 279 base::WrapUnique(new CaptureTestRenderWidgetHost(
280 widget_delegate, 280 widget_delegate,
281 instance->GetProcess(), 281 instance->GetProcess(),
282 routing_id, 282 routing_id,
283 controller)), 283 controller)),
284 delegate, 284 delegate,
285 main_frame_routing_id, 285 main_frame_routing_id,
286 swapped_out), 286 swapped_out) {
287 controller_(controller) {
288 // Override the default view installed by TestRenderViewHost; we need 287 // Override the default view installed by TestRenderViewHost; we need
289 // our special subclass which has mocked-out tab capture support. 288 // our special subclass which has mocked-out tab capture support.
290 RenderWidgetHostView* old_view = GetWidget()->GetView(); 289 RenderWidgetHostView* old_view = GetWidget()->GetView();
291 GetWidget()->SetView(new CaptureTestView(GetWidget(), controller)); 290 GetWidget()->SetView(new CaptureTestView(GetWidget(), controller));
292 delete old_view; 291 delete old_view;
293 } 292 }
294 293
295 private: 294 private:
296 CaptureTestSourceController* controller_;
297
298 DISALLOW_IMPLICIT_CONSTRUCTORS(CaptureTestRenderViewHost); 295 DISALLOW_IMPLICIT_CONSTRUCTORS(CaptureTestRenderViewHost);
299 }; 296 };
300 297
301 class CaptureTestRenderViewHostFactory : public RenderViewHostFactory { 298 class CaptureTestRenderViewHostFactory : public RenderViewHostFactory {
302 public: 299 public:
303 explicit CaptureTestRenderViewHostFactory( 300 explicit CaptureTestRenderViewHostFactory(
304 CaptureTestSourceController* controller) : controller_(controller) { 301 CaptureTestSourceController* controller) : controller_(controller) {
305 RegisterFactory(this); 302 RegisterFactory(this);
306 } 303 }
307 304
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 for (int i = 0; i < 3; ++i) { 1218 for (int i = 0; i < 3; ++i) {
1222 SimulateRefreshFrameRequest(); 1219 SimulateRefreshFrameRequest();
1223 ASSERT_NO_FATAL_FAILURE(client_observer()->WaitForNextColor(SK_ColorGREEN)); 1220 ASSERT_NO_FATAL_FAILURE(client_observer()->WaitForNextColor(SK_ColorGREEN));
1224 } 1221 }
1225 1222
1226 device()->StopAndDeAllocate(); 1223 device()->StopAndDeAllocate();
1227 } 1224 }
1228 1225
1229 } // namespace 1226 } // namespace
1230 } // namespace content 1227 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698