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/win/windows_version.h" | 6 #include "base/win/windows_version.h" |
7 #include "chrome/browser/media/webrtc_browsertest_base.h" | 7 #include "chrome/browser/media/webrtc_browsertest_base.h" |
8 #include "chrome/browser/media/webrtc_browsertest_common.h" | 8 #include "chrome/browser/media/webrtc_browsertest_common.h" |
9 #include "chrome/common/chrome_version_info.h" | 9 #include "chrome/common/chrome_version_info.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
11 #include "media/base/media_switches.h" | |
12 #include "net/test/embedded_test_server/embedded_test_server.h" | 11 #include "net/test/embedded_test_server/embedded_test_server.h" |
13 | 12 |
14 static const char kMainWebrtcTestHtmlPage[] = | 13 static const char kMainWebrtcTestHtmlPage[] = |
15 "/webrtc/webrtc_jsep01_test.html"; | 14 "/webrtc/webrtc_jsep01_test.html"; |
16 | 15 |
17 using chrome::VersionInfo; | 16 using chrome::VersionInfo; |
18 | 17 |
19 // This tests the --disable-webrtc-encryption command line flag. Disabling | 18 // This tests the --disable-webrtc-encryption command line flag. Disabling |
20 // encryption should only be possible on certain channels. | 19 // encryption should only be possible on certain channels. |
21 | 20 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 96 |
98 ASSERT_EQ(expected_string, | 97 ASSERT_EQ(expected_string, |
99 ExecuteJavascript("hasSeenCryptoInSdp()", left_tab)); | 98 ExecuteJavascript("hasSeenCryptoInSdp()", left_tab)); |
100 | 99 |
101 HangUp(left_tab); | 100 HangUp(left_tab); |
102 WaitUntilHangupVerified(left_tab); | 101 WaitUntilHangupVerified(left_tab); |
103 WaitUntilHangupVerified(right_tab); | 102 WaitUntilHangupVerified(right_tab); |
104 | 103 |
105 ASSERT_TRUE(peerconnection_server_.Stop()); | 104 ASSERT_TRUE(peerconnection_server_.Stop()); |
106 } | 105 } |
OLD | NEW |