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

Side by Side Diff: content/browser/webrtc/webrtc_audio_browsertest.cc

Issue 2205423002: webrtc content_browsetests file/class naming cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/webrtc/webrtc_audio_debug_recordings_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/threading/platform_thread.h" 7 #include "base/threading/platform_thread.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" 10 #include "content/browser/webrtc/webrtc_content_browsertest_base.h"
(...skipping 10 matching lines...) Expand all
21 21
22 #if defined(OS_ANDROID) && defined(ADDRESS_SANITIZER) 22 #if defined(OS_ANDROID) && defined(ADDRESS_SANITIZER)
23 // Renderer crashes under Android ASAN: https://crbug.com/408496. 23 // Renderer crashes under Android ASAN: https://crbug.com/408496.
24 #define MAYBE_WebRtcAudioBrowserTest DISABLED_WebRtcAudioBrowserTest 24 #define MAYBE_WebRtcAudioBrowserTest DISABLED_WebRtcAudioBrowserTest
25 #else 25 #else
26 #define MAYBE_WebRtcAudioBrowserTest WebRtcAudioBrowserTest 26 #define MAYBE_WebRtcAudioBrowserTest WebRtcAudioBrowserTest
27 #endif 27 #endif
28 28
29 // This class tests the scenario when permission to access mic or camera is 29 // This class tests the scenario when permission to access mic or camera is
30 // granted. 30 // granted.
31 class MAYBE_WebRtcAudioBrowserTest : public WebRtcContentBrowserTest { 31 class MAYBE_WebRtcAudioBrowserTest : public WebRtcContentBrowserTestBase {
32 public: 32 public:
33 MAYBE_WebRtcAudioBrowserTest() {} 33 MAYBE_WebRtcAudioBrowserTest() {}
34 ~MAYBE_WebRtcAudioBrowserTest() override {} 34 ~MAYBE_WebRtcAudioBrowserTest() override {}
35 35
36 void SetUpCommandLine(base::CommandLine* command_line) override { 36 void SetUpCommandLine(base::CommandLine* command_line) override {
37 WebRtcContentBrowserTest::SetUpCommandLine(command_line); 37 WebRtcContentBrowserTestBase::SetUpCommandLine(command_line);
38 // Automatically grant device permission. 38 // Automatically grant device permission.
39 AppendUseFakeUIForMediaStreamFlag(); 39 AppendUseFakeUIForMediaStreamFlag();
40 } 40 }
41 41
42 protected: 42 protected:
43 // Convenience method for making calls that detect if audio os playing (which 43 // Convenience method for making calls that detect if audio os playing (which
44 // has some special prerequisites, such that there needs to be an audio output 44 // has some special prerequisites, such that there needs to be an audio output
45 // device on the executing machine). 45 // device on the executing machine).
46 void MakeAudioDetectingPeerConnectionCall(const std::string& javascript) { 46 void MakeAudioDetectingPeerConnectionCall(const std::string& javascript) {
47 if (!media::AudioManager::Get()->HasAudioOutputDevices()) { 47 if (!media::AudioManager::Get()->HasAudioOutputDevices()) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 "callAndEnsureRemoteVideoMutingDoesntMuteAudio();"); 110 "callAndEnsureRemoteVideoMutingDoesntMuteAudio();");
111 } 111 }
112 112
113 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioBrowserTest, 113 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioBrowserTest,
114 EstablishAudioVideoCallAndVerifyUnmutingWorks) { 114 EstablishAudioVideoCallAndVerifyUnmutingWorks) {
115 MakeAudioDetectingPeerConnectionCall( 115 MakeAudioDetectingPeerConnectionCall(
116 "callAndEnsureAudioTrackUnmutingWorks();"); 116 "callAndEnsureAudioTrackUnmutingWorks();");
117 } 117 }
118 118
119 } // namespace content 119 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/webrtc/webrtc_audio_debug_recordings_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698