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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 static const char kStreamLabel3[] = "local_stream_3"; | 51 static const char kStreamLabel3[] = "local_stream_3"; |
52 static const int kDefaultStunPort = 3478; | 52 static const int kDefaultStunPort = 3478; |
53 static const char kStunAddressOnly[] = "stun:address"; | 53 static const char kStunAddressOnly[] = "stun:address"; |
54 static const char kStunInvalidPort[] = "stun:address:-1"; | 54 static const char kStunInvalidPort[] = "stun:address:-1"; |
55 static const char kStunAddressPortAndMore1[] = "stun:address:port:more"; | 55 static const char kStunAddressPortAndMore1[] = "stun:address:port:more"; |
56 static const char kStunAddressPortAndMore2[] = "stun:address:port more"; | 56 static const char kStunAddressPortAndMore2[] = "stun:address:port more"; |
57 static const char kTurnIceServerUri[] = "turn:user@turn.example.org"; | 57 static const char kTurnIceServerUri[] = "turn:user@turn.example.org"; |
58 static const char kTurnUsername[] = "user"; | 58 static const char kTurnUsername[] = "user"; |
59 static const char kTurnPassword[] = "password"; | 59 static const char kTurnPassword[] = "password"; |
60 static const char kTurnHostname[] = "turn.example.org"; | 60 static const char kTurnHostname[] = "turn.example.org"; |
61 static const uint32 kTimeout = 10000U; | 61 static const uint32_t kTimeout = 10000U; |
62 | 62 |
63 #define MAYBE_SKIP_TEST(feature) \ | 63 #define MAYBE_SKIP_TEST(feature) \ |
64 if (!(feature())) { \ | 64 if (!(feature())) { \ |
65 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 65 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
66 return; \ | 66 return; \ |
67 } | 67 } |
68 | 68 |
69 using rtc::scoped_ptr; | 69 using rtc::scoped_ptr; |
70 using rtc::scoped_refptr; | 70 using rtc::scoped_refptr; |
71 using webrtc::AudioSourceInterface; | 71 using webrtc::AudioSourceInterface; |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 sdp, NULL); | 1227 sdp, NULL); |
1228 EXPECT_FALSE(DoSetLocalDescription(local_offer)); | 1228 EXPECT_FALSE(DoSetLocalDescription(local_offer)); |
1229 } | 1229 } |
1230 | 1230 |
1231 // Test that GetStats can still be called after PeerConnection::Close. | 1231 // Test that GetStats can still be called after PeerConnection::Close. |
1232 TEST_F(PeerConnectionInterfaceTest, CloseAndGetStats) { | 1232 TEST_F(PeerConnectionInterfaceTest, CloseAndGetStats) { |
1233 InitiateCall(); | 1233 InitiateCall(); |
1234 pc_->Close(); | 1234 pc_->Close(); |
1235 DoGetStats(NULL); | 1235 DoGetStats(NULL); |
1236 } | 1236 } |
OLD | NEW |