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

Unified Diff: content/browser/webrtc/webrtc_capture_from_element_browsertest.cc

Issue 2658973002: Add content_browsertest for checking canvas capture frame rate (Closed)
Patch Set: add content browsertest Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/test/data/media/canvas_capture.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
diff --git a/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc b/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
index 4559cf2e24ef89ec097eae0a32da43815b034fbb..5c664973b8aac800b3ba8c0c65cbddd225eacc00 100644
--- a/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
+++ b/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
@@ -23,8 +23,9 @@
namespace {
-static const char kCanvasTestHtmlPage[] = "/media/canvas_capture_color.html";
-
+static const char kCanvasCaptureTestHtmlFile[] = "/media/canvas_capture.html";
+static const char kCanvasCaptureColorTestHtmlFile[] =
+ "/media/canvas_capture_color.html";
static const char kVideoAudioHtmlFile[] =
"/media/video_audio_element_capture_test.html";
@@ -70,7 +71,18 @@ class WebRtcCaptureFromElementBrowserTest
IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
VerifyCanvasCaptureColor) {
- MakeTypicalCall("testCanvasCaptureColors();", kCanvasTestHtmlPage);
+ MakeTypicalCall("testCanvasCaptureColors();",
+ kCanvasCaptureColorTestHtmlFile);
+}
+
+IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
+ VerifyCanvasCaptureFrames) {
+ MakeTypicalCall("testCanvasCapture(draw2d);", kCanvasCaptureTestHtmlFile);
+}
+
+IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
+ VerifyCanvasCaptureWebGLFrames) {
+ MakeTypicalCall("testCanvasCapture(drawWebGL);", kCanvasCaptureTestHtmlFile);
}
IN_PROC_BROWSER_TEST_P(WebRtcCaptureFromElementBrowserTest,
« no previous file with comments | « no previous file | content/test/data/media/canvas_capture.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698