Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: webrtc/base/network_unittest.cc

Issue 1298363002: Disabling TestUdpIPv6 on Linux (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: a typo in patchset 5 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/base/physicalsocketserver_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 } 552 }
553 553
554 // Test that DumpNetworks works. 554 // Test that DumpNetworks works.
555 TEST_F(NetworkTest, TestDumpNetworks) { 555 TEST_F(NetworkTest, TestDumpNetworks) {
556 BasicNetworkManager manager; 556 BasicNetworkManager manager;
557 manager.DumpNetworks(true); 557 manager.DumpNetworks(true);
558 } 558 }
559 559
560 // Test that we can toggle IPv6 on and off. 560 // Test that we can toggle IPv6 on and off.
561 TEST_F(NetworkTest, TestIPv6Toggle) { 561 // Crashes on Linux. See webrtc:4923.
562 #if defined(WEBRTC_LINUX)
563 #define MAYBE_TestIPv6Toggle DISABLED_TestIPv6Toggle
564 #else
565 #define MAYBE_TestIPv6Toggle TestIPv6Toggle
566 #endif
567 TEST_F(NetworkTest, MAYBE_TestIPv6Toggle) {
562 BasicNetworkManager manager; 568 BasicNetworkManager manager;
563 bool ipv6_found = false; 569 bool ipv6_found = false;
564 NetworkManager::NetworkList list; 570 NetworkManager::NetworkList list;
565 #if !defined(WEBRTC_WIN) 571 #if !defined(WEBRTC_WIN)
566 // There should be at least one IPv6 network (fe80::/64 should be in there). 572 // There should be at least one IPv6 network (fe80::/64 should be in there).
567 // TODO(thaloun): Disabling this test on windows for the moment as the test 573 // TODO(thaloun): Disabling this test on windows for the moment as the test
568 // machines don't seem to have IPv6 installed on them at all. 574 // machines don't seem to have IPv6 installed on them at all.
569 manager.set_ipv6_enabled(true); 575 manager.set_ipv6_enabled(true);
570 list = GetNetworks(manager, true); 576 list = GetNetworks(manager, true);
571 for (NetworkManager::NetworkList::iterator it = list.begin(); 577 for (NetworkManager::NetworkList::iterator it = list.begin();
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip)); 779 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip));
774 780
775 // Add global dynamic temporary one. 781 // Add global dynamic temporary one.
776 ipstr = "2401:fa00:4:1000:be30:5bff:fee5:c6"; 782 ipstr = "2401:fa00:4:1000:be30:5bff:fee5:c6";
777 ASSERT_TRUE(IPFromString(ipstr, IPV6_ADDRESS_FLAG_TEMPORARY, &ip)); 783 ASSERT_TRUE(IPFromString(ipstr, IPV6_ADDRESS_FLAG_TEMPORARY, &ip));
778 ipv6_network.AddIP(ip); 784 ipv6_network.AddIP(ip);
779 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip)); 785 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip));
780 } 786 }
781 787
782 } // namespace rtc 788 } // namespace rtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/physicalsocketserver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698