| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" | 9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 {true, "VP8"}, {true, "VP9"}, {true, "H264"}, | 23 {true, "VP8"}, {true, "VP9"}, {true, "H264"}, |
| 24 {false, "VP8"}, {false, "VP9"}, {false, "H264"}, | 24 {false, "VP8"}, {false, "VP9"}, {false, "H264"}, |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 // This class tests the recording of a media stream. | 31 // This class tests the recording of a media stream. |
| 32 class WebRtcMediaRecorderTest | 32 class WebRtcMediaRecorderTest |
| 33 : public WebRtcContentBrowserTest, | 33 : public WebRtcContentBrowserTestBase, |
| 34 public testing::WithParamInterface<struct EncodingParameters> { | 34 public testing::WithParamInterface<struct EncodingParameters> { |
| 35 public: | 35 public: |
| 36 WebRtcMediaRecorderTest() {} | 36 WebRtcMediaRecorderTest() {} |
| 37 ~WebRtcMediaRecorderTest() override {} | 37 ~WebRtcMediaRecorderTest() override {} |
| 38 | 38 |
| 39 void SetUpCommandLine(base::CommandLine* command_line) override { | 39 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 40 WebRtcContentBrowserTest::SetUpCommandLine(command_line); | 40 WebRtcContentBrowserTestBase::SetUpCommandLine(command_line); |
| 41 | 41 |
| 42 AppendUseFakeUIForMediaStreamFlag(); | 42 AppendUseFakeUIForMediaStreamFlag(); |
| 43 | 43 |
| 44 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 44 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 45 switches::kUseFakeDeviceForMediaStream); | 45 switches::kUseFakeDeviceForMediaStream); |
| 46 | 46 |
| 47 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 47 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| 48 switches::kEnableBlinkFeatures, "GetUserMedia"); | 48 switches::kEnableBlinkFeatures, "GetUserMedia"); |
| 49 } | 49 } |
| 50 | 50 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 RemovingTrackFromMediaStreamFiresErrorEvent) { | 162 RemovingTrackFromMediaStreamFiresErrorEvent) { |
| 163 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", | 163 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", |
| 164 kMediaRecorderHtmlFile); | 164 kMediaRecorderHtmlFile); |
| 165 } | 165 } |
| 166 | 166 |
| 167 INSTANTIATE_TEST_CASE_P(, | 167 INSTANTIATE_TEST_CASE_P(, |
| 168 WebRtcMediaRecorderTest, | 168 WebRtcMediaRecorderTest, |
| 169 testing::ValuesIn(kEncodingParameters)); | 169 testing::ValuesIn(kEncodingParameters)); |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| OLD | NEW |