| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/debug/trace_event_impl.h" | 6 #include "base/debug/trace_event_impl.h" |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateUnsupportedVideoCodec) { | 515 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateUnsupportedVideoCodec) { |
| 516 MakeTypicalPeerConnectionCall("negotiateUnsupportedVideoCodec();"); | 516 MakeTypicalPeerConnectionCall("negotiateUnsupportedVideoCodec();"); |
| 517 } | 517 } |
| 518 | 518 |
| 519 // This test will modify the SDP offer to use no encryption, which should | 519 // This test will modify the SDP offer to use no encryption, which should |
| 520 // cause SetLocalDescription to fail. | 520 // cause SetLocalDescription to fail. |
| 521 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateNonCryptoCall) { | 521 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateNonCryptoCall) { |
| 522 MakeTypicalPeerConnectionCall("negotiateNonCryptoCall();"); | 522 MakeTypicalPeerConnectionCall("negotiateNonCryptoCall();"); |
| 523 } | 523 } |
| 524 | 524 |
| 525 // This test can negotiate an SDP offer that includes a b=AS:xx to control |
| 526 // the bandwidth for audio and video |
| 527 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateOfferWithBLine) { |
| 528 MakeTypicalPeerConnectionCall("negotiateOfferWithBLine();"); |
| 529 } |
| 530 |
| 525 // This test will make a complete PeerConnection-based call using legacy SDP | 531 // This test will make a complete PeerConnection-based call using legacy SDP |
| 526 // settings: GIce, external SDES, and no BUNDLE. | 532 // settings: GIce, external SDES, and no BUNDLE. |
| 527 #if defined(OS_WIN) && defined(USE_AURA) | 533 #if defined(OS_WIN) && defined(USE_AURA) |
| 528 // Disabled for win7_aura, see http://crbug.com/235089. | 534 // Disabled for win7_aura, see http://crbug.com/235089. |
| 529 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall | 535 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall |
| 530 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) | 536 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) |
| 531 // Timing out on ARM linux, see http://crbug.com/240373 | 537 // Timing out on ARM linux, see http://crbug.com/240373 |
| 532 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall | 538 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall |
| 533 #else | 539 #else |
| 534 #define MAYBE_CanSetupLegacyCall CanSetupLegacyCall | 540 #define MAYBE_CanSetupLegacyCall CanSetupLegacyCall |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 EXPECT_TRUE(base::PathExists(dump_file)); | 803 EXPECT_TRUE(base::PathExists(dump_file)); |
| 798 int64 file_size = 0; | 804 int64 file_size = 0; |
| 799 EXPECT_TRUE(base::GetFileSize(dump_file, &file_size)); | 805 EXPECT_TRUE(base::GetFileSize(dump_file, &file_size)); |
| 800 EXPECT_EQ(0, file_size); | 806 EXPECT_EQ(0, file_size); |
| 801 | 807 |
| 802 base::DeleteFile(dump_file, false); | 808 base::DeleteFile(dump_file, false); |
| 803 } | 809 } |
| 804 | 810 |
| 805 | 811 |
| 806 } // namespace content | 812 } // namespace content |
| OLD | NEW |