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

Side by Side Diff: talk/app/webrtc/webrtcsession_unittest.cc

Issue 1328453003: Add more IceCandidatePairType for host-host CandidatePair (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 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 | « talk/app/webrtc/webrtcsession.cc ('k') | no next file » | 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 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 expected.ipv4_count_); 1036 expected.ipv4_count_);
1037 EXPECT_EQ( 1037 EXPECT_EQ(
1038 metrics_observer->GetEnumCounter(webrtc::kEnumCounterAddressFamily, 1038 metrics_observer->GetEnumCounter(webrtc::kEnumCounterAddressFamily,
1039 webrtc::kBestConnections_IPv6), 1039 webrtc::kBestConnections_IPv6),
1040 expected.ipv6_count_); 1040 expected.ipv6_count_);
1041 // This is used in the loopback call so there is only single host to host 1041 // This is used in the loopback call so there is only single host to host
1042 // candidate pair. 1042 // candidate pair.
1043 EXPECT_EQ(metrics_observer->GetEnumCounter( 1043 EXPECT_EQ(metrics_observer->GetEnumCounter(
1044 webrtc::kEnumCounterIceCandidatePairTypeUdp, 1044 webrtc::kEnumCounterIceCandidatePairTypeUdp,
1045 webrtc::kIceCandidatePairHostHost), 1045 webrtc::kIceCandidatePairHostHost),
1046 0);
1047 EXPECT_EQ(metrics_observer->GetEnumCounter(
1048 webrtc::kEnumCounterIceCandidatePairTypeUdp,
1049 webrtc::kIceCandidatePairHostPublicHostPublic),
1046 1); 1050 1);
1047 } 1051 }
1048 }; 1052 };
1049 1053
1050 class LoopbackNetworkManager { 1054 class LoopbackNetworkManager {
1051 public: 1055 public:
1052 LoopbackNetworkManager(WebRtcSessionTest* session, 1056 LoopbackNetworkManager(WebRtcSessionTest* session,
1053 const LoopbackNetworkConfiguration& config) 1057 const LoopbackNetworkConfiguration& config)
1054 : config_(config) { 1058 : config_(config) {
1055 session->AddInterface( 1059 session->AddInterface(
(...skipping 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 } 3942 }
3939 } 3943 }
3940 3944
3941 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test 3945 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test
3942 // currently fails because upon disconnection and reconnection OnIceComplete is 3946 // currently fails because upon disconnection and reconnection OnIceComplete is
3943 // called more than once without returning to IceGatheringGathering. 3947 // called more than once without returning to IceGatheringGathering.
3944 3948
3945 INSTANTIATE_TEST_CASE_P( 3949 INSTANTIATE_TEST_CASE_P(
3946 WebRtcSessionTests, WebRtcSessionTest, 3950 WebRtcSessionTests, WebRtcSessionTest,
3947 testing::Values(ALREADY_GENERATED, DTLS_IDENTITY_STORE)); 3951 testing::Values(ALREADY_GENERATED, DTLS_IDENTITY_STORE));
OLDNEW
« no previous file with comments | « talk/app/webrtc/webrtcsession.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698