OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 GetWebrtcInternalsData(webrtc_internals_tab)); | 102 GetWebrtcInternalsData(webrtc_internals_tab)); |
103 } | 103 } |
104 }; | 104 }; |
105 | 105 |
106 // This is manual for its long execution time. | 106 // This is manual for its long execution time. |
107 IN_PROC_BROWSER_TEST_F(WebRtcPerfBrowserTest, | 107 IN_PROC_BROWSER_TEST_F(WebRtcPerfBrowserTest, |
108 MANUAL_RunsAudioVideoCall60SecsAndLogsInternalMetrics) { | 108 MANUAL_RunsAudioVideoCall60SecsAndLogsInternalMetrics) { |
109 if (OnWinXp()) return; | 109 if (OnWinXp()) return; |
110 | 110 |
111 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); | 111 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); |
112 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 112 ASSERT_TRUE(embedded_test_server()->Start()); |
113 | 113 |
114 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) << | 114 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) << |
115 "This is a long-running test; you must specify " | 115 "This is a long-running test; you must specify " |
116 "--ui-test-action-max-timeout to have a value of at least 100000."; | 116 "--ui-test-action-max-timeout to have a value of at least 100000."; |
117 | 117 |
118 content::WebContents* left_tab = | 118 content::WebContents* left_tab = |
119 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); | 119 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
120 content::WebContents* right_tab = | 120 content::WebContents* right_tab = |
121 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); | 121 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
122 | 122 |
(...skipping 24 matching lines...) Expand all Loading... |
147 | 147 |
148 HangUp(left_tab); | 148 HangUp(left_tab); |
149 HangUp(right_tab); | 149 HangUp(right_tab); |
150 } | 150 } |
151 | 151 |
152 IN_PROC_BROWSER_TEST_F(WebRtcPerfBrowserTest, | 152 IN_PROC_BROWSER_TEST_F(WebRtcPerfBrowserTest, |
153 MANUAL_RunsOneWayCall60SecsAndLogsInternalMetrics) { | 153 MANUAL_RunsOneWayCall60SecsAndLogsInternalMetrics) { |
154 if (OnWinXp()) return; | 154 if (OnWinXp()) return; |
155 | 155 |
156 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); | 156 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); |
157 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 157 ASSERT_TRUE(embedded_test_server()->Start()); |
158 | 158 |
159 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) << | 159 ASSERT_GE(TestTimeouts::action_max_timeout().InSeconds(), 100) << |
160 "This is a long-running test; you must specify " | 160 "This is a long-running test; you must specify " |
161 "--ui-test-action-max-timeout to have a value of at least 100000."; | 161 "--ui-test-action-max-timeout to have a value of at least 100000."; |
162 | 162 |
163 content::WebContents* left_tab = | 163 content::WebContents* left_tab = |
164 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); | 164 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
165 content::WebContents* right_tab = | 165 content::WebContents* right_tab = |
166 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); | 166 OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
167 | 167 |
(...skipping 23 matching lines...) Expand all Loading... |
191 | 191 |
192 const base::DictionaryValue* second_pc_dict = | 192 const base::DictionaryValue* second_pc_dict = |
193 GetDataOnPeerConnection(all_data.get(), 1); | 193 GetDataOnPeerConnection(all_data.get(), 1); |
194 ASSERT_TRUE(second_pc_dict != NULL); | 194 ASSERT_TRUE(second_pc_dict != NULL); |
195 test::PrintBweForVideoMetrics(*second_pc_dict, "_recvonly"); | 195 test::PrintBweForVideoMetrics(*second_pc_dict, "_recvonly"); |
196 test::PrintMetricsForAllStreams(*second_pc_dict, "_recvonly"); | 196 test::PrintMetricsForAllStreams(*second_pc_dict, "_recvonly"); |
197 | 197 |
198 HangUp(left_tab); | 198 HangUp(left_tab); |
199 HangUp(right_tab); | 199 HangUp(right_tab); |
200 } | 200 } |
OLD | NEW |