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

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

Issue 214663004: Add test for sending square resolution video on a PeerConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); 76 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html"));
77 NavigateToURL(shell(), url); 77 NavigateToURL(shell(), url);
78 78
79 #if defined (OS_ANDROID) 79 #if defined (OS_ANDROID)
80 // Always force iSAC 16K on Android for now (Opus is broken). 80 // Always force iSAC 16K on Android for now (Opus is broken).
81 EXPECT_EQ("isac-forced", 81 EXPECT_EQ("isac-forced",
82 ExecuteJavascriptAndReturnResult("forceIsac16KInSdp();")); 82 ExecuteJavascriptAndReturnResult("forceIsac16KInSdp();"));
83 #endif 83 #endif
84 84
85 ExecuteJavascriptAndWaitForOk("call({video: true, audio: true});"); 85 ExecuteJavascriptAndWaitForOk("call({video: true, audio: true}, 640, 480);");
86 86
87 EXPECT_TRUE(base::PathExists(dump_file_)); 87 EXPECT_TRUE(base::PathExists(dump_file_));
88 int64 file_size = 0; 88 int64 file_size = 0;
89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size)); 89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size));
90 EXPECT_GT(file_size, 0); 90 EXPECT_GT(file_size, 0);
91 } 91 }
92 92
93 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/webrtc_browsertest.cc » ('j') | content/browser/media/webrtc_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698