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

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

Issue 128353002: Fixing WebRTC AEC dump tests on Android, disabling DTMF test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No longer double initializing the aec dump test server." Created 6 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 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/platform_file.h" 7 #include "base/platform_file.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/public/test/browser_test_utils.h" 10 #include "content/public/test/browser_test_utils.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // This tests will make a complete PeerConnection-based call, verify that 76 // This tests will make a complete PeerConnection-based call, verify that
77 // video is playing for the call, and verify that a non-empty AEC dump file 77 // video is playing for the call, and verify that a non-empty AEC dump file
78 // exists. 78 // exists.
79 IN_PROC_BROWSER_TEST_F(WebrtcAecDumpBrowserTest, MAYBE_CallWithAecDump) { 79 IN_PROC_BROWSER_TEST_F(WebrtcAecDumpBrowserTest, MAYBE_CallWithAecDump) {
80 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 80 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
81 81
82 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); 82 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html"));
83 NavigateToURL(shell(), url); 83 NavigateToURL(shell(), url);
84 84
85 #if defined (OS_ANDROID)
86 // Always force iSAC 16K on Android for now (Opus is broken).
87 ASSERT_TRUE(ExecuteJavascript("forceIsac16KInSdp();"));
88 #endif
89
85 EXPECT_TRUE(ExecuteJavascript("call({video: true, audio: true});")); 90 EXPECT_TRUE(ExecuteJavascript("call({video: true, audio: true});"));
86 ExpectTitle("OK"); 91 ExpectTitle("OK");
87 92
88 EXPECT_TRUE(base::PathExists(dump_file_)); 93 EXPECT_TRUE(base::PathExists(dump_file_));
89 int64 file_size = 0; 94 int64 file_size = 0;
90 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size)); 95 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size));
91 EXPECT_GT(file_size, 0); 96 EXPECT_GT(file_size, 0);
92 } 97 }
93 98
94 } // namespace content 99 } // namespace content
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/filter/content_browsertests_disabled ('k') | content/browser/media/webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698