| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "chrome/browser/media/webrtc/test_stats_dictionary.h" | 10 #include "chrome/browser/media/webrtc/test_stats_dictionary.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Ensure the infobar is enabled, since we expect that in this test. | 77 // Ensure the infobar is enabled, since we expect that in this test. |
| 78 EXPECT_FALSE(command_line->HasSwitch(switches::kUseFakeUIForMediaStream)); | 78 EXPECT_FALSE(command_line->HasSwitch(switches::kUseFakeUIForMediaStream)); |
| 79 | 79 |
| 80 // Play a suitable, somewhat realistic video file. | 80 // Play a suitable, somewhat realistic video file. |
| 81 base::FilePath input_video = test::GetReferenceFilesDir() | 81 base::FilePath input_video = test::GetReferenceFilesDir() |
| 82 .Append(test::kReferenceFileName360p) | 82 .Append(test::kReferenceFileName360p) |
| 83 .AddExtension(test::kY4mFileExtension); | 83 .AddExtension(test::kY4mFileExtension); |
| 84 command_line->AppendSwitchPath(switches::kUseFileForFakeVideoCapture, | 84 command_line->AppendSwitchPath(switches::kUseFileForFakeVideoCapture, |
| 85 input_video); | 85 input_video); |
| 86 command_line->AppendSwitch(switches::kUseFakeDeviceForMediaStream); | 86 command_line->AppendSwitch(switches::kUseFakeDeviceForMediaStream); |
| 87 | |
| 88 command_line->AppendSwitchASCII(switches::kEnableBlinkFeatures, | |
| 89 "RTCPeerConnectionNewGetStats"); | |
| 90 } | 87 } |
| 91 | 88 |
| 92 void StartCall(const std::string& audio_codec, | 89 void StartCall(const std::string& audio_codec, |
| 93 const std::string& video_codec) { | 90 const std::string& video_codec) { |
| 94 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); | 91 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); |
| 95 ASSERT_TRUE(embedded_test_server()->Start()); | 92 ASSERT_TRUE(embedded_test_server()->Start()); |
| 96 | 93 |
| 97 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) | 94 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) |
| 98 << "This is a long-running test; you must specify " | 95 << "This is a long-running test; you must specify " |
| 99 "--ui-test-action-max-timeout to have a value of at least 100000."; | 96 "--ui-test-action-max-timeout to have a value of at least 100000."; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 IN_PROC_BROWSER_TEST_F( | 299 IN_PROC_BROWSER_TEST_F( |
| 303 WebRtcStatsPerfBrowserTest, | 300 WebRtcStatsPerfBrowserTest, |
| 304 MANUAL_RunsAudioAndVideoCallMeasuringGetStatsPerformance_Callback) { | 301 MANUAL_RunsAudioAndVideoCallMeasuringGetStatsPerformance_Callback) { |
| 305 RunsAudioAndVideoCallMeasuringGetStatsPerformance( | 302 RunsAudioAndVideoCallMeasuringGetStatsPerformance( |
| 306 GetStatsVariation::CALLBACK_BASED); | 303 GetStatsVariation::CALLBACK_BASED); |
| 307 } | 304 } |
| 308 | 305 |
| 309 } // namespace | 306 } // namespace |
| 310 | 307 |
| 311 } // namespace content | 308 } // namespace content |
| OLD | NEW |