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

Side by Side Diff: content/browser/media/webrtc_getusermedia_browsertest.cc

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: e296ac98 Win32 bits. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/debug/trace_event_impl.h" 5 #include "base/debug/trace_event_impl.h"
6 #include "base/json/json_reader.h" 6 #include "base/json/json_reader.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/test/trace_event_analyzer.h" 8 #include "base/test/trace_event_analyzer.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/browser/media/webrtc_internals.h" 10 #include "content/browser/media/webrtc_internals.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // This test will make a simple getUserMedia page, verify that video is playing 351 // This test will make a simple getUserMedia page, verify that video is playing
352 // in a simple local <video>, and for a couple of seconds, collect some 352 // in a simple local <video>, and for a couple of seconds, collect some
353 // performance traces from VideoCaptureController colorspace conversion and 353 // performance traces from VideoCaptureController colorspace conversion and
354 // potential resizing. 354 // potential resizing.
355 IN_PROC_BROWSER_TEST_F( 355 IN_PROC_BROWSER_TEST_F(
356 WebRtcGetUserMediaBrowserTest, 356 WebRtcGetUserMediaBrowserTest,
357 TraceVideoCaptureControllerPerformanceDuringGetUserMedia) { 357 TraceVideoCaptureControllerPerformanceDuringGetUserMedia) {
358 RunGetUserMediaAndCollectMeasures( 358 RunGetUserMediaAndCollectMeasures(
359 10, 359 10,
360 "VideoCaptureController::OnIncomingCapturedFrame", 360 "VideoCaptureController::OnIncomingCapturedData",
361 "VideoCaptureController"); 361 "VideoCaptureController");
362 } 362 }
363 363
364 // This test will make a simple getUserMedia page, verify that video is playing 364 // This test will make a simple getUserMedia page, verify that video is playing
365 // in a simple local <video>, and for a couple of seconds, collect some 365 // in a simple local <video>, and for a couple of seconds, collect some
366 // performance traces. Only for Android. 366 // performance traces. Only for Android.
367 #if defined(OS_ANDROID) 367 #if defined(OS_ANDROID)
368 IN_PROC_BROWSER_TEST_F( 368 IN_PROC_BROWSER_TEST_F(
369 WebRtcGetUserMediaBrowserTest, 369 WebRtcGetUserMediaBrowserTest,
370 TraceVideoCaptureDeviceAndroidPerformanceDuringGetUserMedia) { 370 TraceVideoCaptureDeviceAndroidPerformanceDuringGetUserMedia) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 {640, 640, 480, 480, 30, 30}, 448 {640, 640, 480, 480, 30, 30},
449 {960, 960, 720, 720, 30, 30}, 449 {960, 960, 720, 720, 30, 30},
450 {1280, 1280, 720, 720, 30, 30}, 450 {1280, 1280, 720, 720, 30, 30},
451 {1920, 1920, 1080, 1080, 30, 30}}; 451 {1920, 1920, 1080, 1080, 30, 30}};
452 452
453 INSTANTIATE_TEST_CASE_P(UserMedia, 453 INSTANTIATE_TEST_CASE_P(UserMedia,
454 WebRtcConstraintsBrowserTest, 454 WebRtcConstraintsBrowserTest,
455 testing::ValuesIn(kAllUserMediaSizes)); 455 testing::ValuesIn(kAllUserMediaSizes));
456 456
457 } // namespace content 457 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698