Commit Graph

609 Commits

Author SHA1 Message Date
Michael Froman
04ec3df956 Bug 906986 - Disable TestSrflxCandPairingFilter until bug 1226838 is fixed. r=bwc, r=drno
MozReview-Commit-ID: 5QFUeqDG4dh

--HG--
extra : rebase_source : a7c3f93e33072d0645339a6a169d49a9f58b04f2
2016-03-31 09:16:23 -05:00
Nils Ohlmeier [:drno]
4d0aaaafea Bug 1244926: added TCP socket filter to only allow outgoing STUN. r=jesup
MozReview-Commit-ID: 8PpL6Z0za71

--HG--
rename : media/mtransport/stun_udp_socket_filter.cpp => media/mtransport/stun_socket_filter.cpp
rename : media/mtransport/stun_udp_socket_filter.h => media/mtransport/stun_socket_filter.h
rename : netwerk/base/nsIUDPSocketFilter.idl => netwerk/base/nsISocketFilter.idl
extra : rebase_source : 2acf092e587a19a2019f463fa0a015373d3881d3
2016-02-11 01:18:46 -08:00
Byron Campen [:bwc]
7325e61fd6 Bug 1258753: Base candidate pair priority on controlling/controlled. r=drno
MozReview-Commit-ID: 6RAFaAtBbJq

--HG--
extra : rebase_source : 976b63d44fc7c50efa8f40b067cf45b56c66ed09
extra : source : 7b6263bcd3d7e9148914f5aaace10fc69ea0395d
2016-03-22 12:22:56 -05:00
Nicholas Nethercote
ea9bc73f05 Bug 1254780 (attempt 2) - Shrink log_types from 1024 entries to 16. r=ekr.
MozReview-Commit-ID: KWrOTuTlt6H

--HG--
extra : rebase_source : 36ec95f4584ea0d67286e9956456dffbe5294401
2016-03-11 10:06:32 +11:00
Byron Campen [:bwc]
6765c70f22 Bug 933986. Switch over from index to an id, and ensure uniqueness when feeding into the candidate priority calculation. r=drno
MozReview-Commit-ID: 5LOQJbsnEWN

--HG--
extra : rebase_source : 644695f73f316fa8e71e410442f3796822e3255a
2013-11-04 16:50:10 -08:00
Byron Campen [:bwc]
03253b8221 Bug 1256720: Remove a bad assertion, and simplify some code. r=drno
MozReview-Commit-ID: 3h52q8Wrp8R

--HG--
extra : rebase_source : a1cf4d7fa29e4ed7bb6a1f5be19d1b2af2ef5316
2016-03-24 15:05:53 -05:00
Sebastian Hengst
4029855eed Backed out changeset e139011ede5b (bug 1254780) for crashes in mozilla::gfx::Log<1,mozilla::gfx::CriticalLogger>::WriteLog on Windows 7 debug. r=backout 2016-03-24 10:52:52 +01:00
Nicholas Nethercote
d6246f169d Bug 1254780 - Shrink log_types from 1024 entries to 16. r=ekr.
--HG--
extra : rebase_source : 7cc7a749b080fb3e35c9b8cf285ff88738ef3234
2016-03-11 10:06:32 +11:00
Byron Campen [:bwc]
02772181cb Bug 1257472: Forgive rport of 0. r=drno,ekr
MozReview-Commit-ID: 12YyYqrt3wR

--HG--
extra : rebase_source : b3e8397a0c29f8a9d354e4081fcf76e103fd11d8
2016-03-17 10:50:33 -05:00
Martin Thomson
7d88785757 Bug 1251822 - Disable ChaCha20Poly1305 for unit tests that check cipher suite, r=ekr
MozReview-Commit-ID: H7IW0iOTAzx

--HG--
extra : rebase_source : 7d637e24ea89c0d070fbe0511dd445f8d11e51f6
2016-03-16 17:52:49 +11:00
Nils Ohlmeier [:drno]
eca4273031 Bug 1233181: improve misleading log message about missing STUN & TURN servers. r?=mjf
MozReview-Commit-ID: sQzU9u96yP

--HG--
extra : rebase_source : 9a5d3198ee4d52fab556d2eace08aa41ea75cf5a
2015-12-16 12:00:27 -08:00
Boris Zbarsky
1228b7cbd3 Bug 1255269. Get rid of nsITCPSocketCallback.fireDataEvent. r=jdm 2016-03-10 18:07:28 -05:00
Byron Campen [:bwc]
736356238e Bug 1248637: Prune duplicate CANCELLED candidate pairs. r=drno
MozReview-Commit-ID: HeErN7xMxbQ

--HG--
extra : rebase_source : d8f355e6cc74c73c3e9bc100a2bb2b2603931e55
2016-03-01 10:47:14 -06:00
Nils Ohlmeier [:drno]
6d382efd5e Bug 1253198: add WebRtcIce prefix to all ICE unit tests. r=bwc
MozReview-Commit-ID: 5wD8Dl9ETkB

--HG--
extra : rebase_source : edf942c35be1d4caba5501b9395a70953eaa8344
2016-03-03 01:40:52 -08:00
Nils Ohlmeier [:drno]
01210346dd Bug 1217677: increase UDP socket receive buffer for <= Win7. r=jesup,mcmanus
MozReview-Commit-ID: A3yCZZ3Pwcu

--HG--
extra : rebase_source : 67d200194ed72076fcb6064f16ec94334f8fb5e7
2016-03-01 21:46:50 -08:00
Nils Ohlmeier [:drno]
1a7d746ecc Bug 1252777: skip over ICE TCP host candidate creation failures. r=bwc
MozReview-Commit-ID: 6l0ierHz5eL

--HG--
extra : rebase_source : 5bcce0063cf092f9eba278ea6790a0ada07eb82c
2016-03-02 01:27:01 -08:00
Nathan Froyd
b938c57967 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-03-02 15:28:27 -05:00
Byron Campen [:bwc]
f1f2ee96b5 Bug 1037618 - Part 1: Add some logging to highlight TCP connection failures. r=drno
MozReview-Commit-ID: 4q84yGspvyX

--HG--
extra : rebase_source : 099d1dd32cc46ed96ac234fe0a65c85333acfdf1
2016-03-01 12:06:12 -06:00
Byron Campen [:bwc]
f3294c2565 Bug 1252585: Clear received_ct_ in TestStunServer::Reset r=drno
MozReview-Commit-ID: F7Dgk5gN4cs

--HG--
extra : rebase_source : 5a5b536b906a01dfb171008ba02ce3650abafca9
2016-03-01 13:59:43 -06:00
Byron Campen [:bwc]
8e9153abea Bug 1252163: Fix CheckTcpConnectivity to wait for readable/writeable when necessary. r=drno
MozReview-Commit-ID: 6hz0eCghYE0

--HG--
extra : rebase_source : 46b1221ab29c33455f7ceb3c0e149e4c8aaa2397
2016-02-29 12:33:47 -06:00
Byron Campen [:bwc]
3a66dfe493 Bug 1252171: Update last_used_ on TCP port mappings when they are used, similar to UDP. r=drno
MozReview-Commit-ID: DNinTza44la

--HG--
extra : rebase_source : 5d65d9a4c21ad113a2762ebf397b1e7b8f289dd5
2016-02-29 13:04:42 -06:00
Wes Kocher
6866309c97 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00
Nathan Froyd
70d7688ee3 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-02-26 14:52:15 -05:00
Eric Rahm
e9c93e58a3 Bug 1251737 - Remove remaining references to MOZILLA_XPCOMRT_API from media. r=jesup 2016-02-27 11:12:07 -08:00
Eric Rahm
2917e8395e Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Eric Rahm
082b84fde2 Bug 1239870 - Part 4: Disable broken proxy tunnel tests. r=bwc
Several of the proxy tunnel tests are broken. The proxy tunnel test is also
not run in automation.
2016-02-25 15:54:04 -08:00
Eric Rahm
c9f8e6756f Bug 1239870 - Part 3: Add a base mtransport gtest. r=bwc
This adds a base test for other mtransport tests to be derived from. It
handles common setup used by the mtransport tests and parses relevant env
vars.
2016-02-25 14:25:49 -08:00
Eric Rahm
d5bd208a66 Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Eric Rahm
0d0d8d2c9e Bug 1239870 - Part 1: Remove declaration of test_utils from header. r=bwc
Once files are all compiled into the same gtest this will cause duplicate
symbol errors. It's also unused.
2016-02-09 10:02:37 -08:00
Wes Kocher
72d9604d91 Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)

MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00
Eric Rahm
6968bce012 Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Eric Rahm
6c7be83907 Bug 1239870 - Part 4: Disable broken proxy tunnel tests. r=bwc
Several of the proxy tunnel tests are broken. The proxy tunnel test is also
not run in automation.
2016-02-25 15:54:04 -08:00
Eric Rahm
dc59103e98 Bug 1239870 - Part 3: Add a base mtransport gtest. r=bwc
This adds a base test for other mtransport tests to be derived from. It
handles common setup used by the mtransport tests and parses relevant env
vars.
2016-02-25 14:25:49 -08:00
Eric Rahm
c93c9b8dbe Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Eric Rahm
a90c690c9a Bug 1239870 - Part 1: Remove declaration of test_utils from header. r=bwc
Once files are all compiled into the same gtest this will cause duplicate
symbol errors. It's also unused.
2016-02-09 10:02:37 -08:00
Byron Campen [:bwc]
ca4206043b Bug 1251214: Ignore R_WOULDBLOCK in nr_stun_client_send_request r=ekr
MozReview-Commit-ID: HLrvq4BqT9D

--HG--
extra : rebase_source : 4fdef84e82f8eec2f013b7c667bb0ac606ce0751
2016-02-25 11:34:27 -06:00
Chris Peterson
40c713a733 Bug 1247536 - Fix -Wunreachable-code warning in media/mtransport/. r=drno
media/mtransport/nr_socket_prsock.cpp:1059:10: warning: 'return' will never be executed [-Wunreachable-code-return]
2016-02-10 22:23:32 -08:00
Nils Ohlmeier [:drno]
593e9d2dc5 Bug 1246363: add logging to detect if relay only option is set. r=mjf
--HG--
extra : rebase_source : b5c62327575846c894ce8e8b252bb7397ea913ac
2016-02-05 22:56:14 -08:00
Bogdan Postelnicu
81b7f293ba Bug 1246925 - log filtering_type and mapping_type only if they are valid pointers. r=ekr
--HG--
extra : transplant_source : %DDe%CE%AD%BA%A4%93%F5%96kv%DEV%D2hZ%A11%10P
2016-02-09 15:38:00 +02:00
Nils Ohlmeier [:drno]
59d2466489 Bug 1224845 - close sockets on errors and don't connect to IPv4 TURN TCP from IPv6 sockets. r=jesup
--HG--
extra : transplant_source : %9Eg%1E%E0%B9%0E%5Eh%3EJK8uk%91s%EC%11I%17
2016-01-28 10:53:56 -08:00
Byron Campen [:bwc]
50a78a6abe Bug 1244338 - Don't try to clean up |ctx| if null. r=drno
--HG--
extra : transplant_source : %22%1Bw%13e%E3HU%CA%3E%EC%14%9Ce%9CR%B6g%7D%01
2016-02-01 16:22:17 -06:00
Byron Campen [:bwc]
139b740255 Bug 1231973 - Allow NAT simulator to be enabled with the pref system. r=drno
--HG--
extra : transplant_source : %DC%23%97%86a%7D-%C5%1BU%10%C4%13%5E%BE%D7%CA%9B%3B%8D
2015-12-16 14:26:02 -06:00
Nils Ohlmeier [:drno]
738a3eff1d Bug 1214269 - read multiple DTLS packets from NSS if present. r=mt r=jesup
--HG--
extra : rebase_source : 4024e950cf0fdd46c8b59cd4d4dafc6b8bae2115
2015-11-03 17:21:35 -08:00
Byron Campen [:bwc]
ea0d28b380 Bug 1231971 - Refactor the NAT simulator to use e10s sockets when appropriate. r=drno
--HG--
extra : transplant_source : %B4%2B%26%B8I%C5%E4%F9%83%A6%0B%21%D8%AA%D5%96%3B%B2%00%E1
2016-01-20 17:25:26 -06:00
Paul Kerr [:pkerr]
76bf81396a Bug 1221786: clear about:webrtc logs for private browsing sessions. r=jib
No WebRTC session statistics will be saved until all PeerConnections
in private browsing window end. In addition, the shared
WebRTC ICE signalling log for that e10s process is disabled until the
private session close.
2016-01-26 08:08:25 -08:00
Paul Kerr [:pkerr]
7282ddd04a Bug 1209252 - Part 2: typo fix for compile issue. r=bustage on a CLOSED TREE 2016-01-27 18:09:19 -08:00
Paul Kerr [:pkerr]
447a27169b Bug 1209252: add buttons to clear session and signaling logs. r=jib, r=sicking 2016-01-27 16:05:10 -08:00
Xidorn Quan
50bcfcc983 Bug 1237909 part 1 - Remove unused TransportLayer::RunOnThread function. r=bwc
--HG--
extra : source : ae64d2c13d73b49063fc5dfa655ed7750f3b7091
2016-01-25 14:52:34 +11:00
Nils Ohlmeier [:drno]
f795a86676 Bug 1117984: added proxy connection state enum. r=bwc
--HG--
extra : rebase_source : 46ddbc54e9bd7d9d543b12cfe6147fa80e80f742
2016-01-20 15:55:35 -08:00
Nils Ohlmeier [:drno]
8bdb943452 Bug 1241690: reduce logging output for unconnected PCs. r=bwc
--HG--
extra : rebase_source : c2a1d73d3cb5f26df333c23dd94b35214f1d7721
2016-01-21 12:04:28 -08:00