OLD | NEW |
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 Loading... |
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 Loading... |
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)); |
OLD | NEW |