mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1018473. Unit test for duplicate trickle candidates. r=bwc
This commit is contained in:
parent
baaf6d91b7
commit
7afad1293c
@ -477,6 +477,12 @@ TestObserver::OnIceCandidate(uint16_t level,
|
||||
{
|
||||
std::cout << name << ": onIceCandidate [" << level << "/"
|
||||
<< mid << "] " << candidate << std::endl;
|
||||
|
||||
// Check for duplicates.
|
||||
for (auto it = candidates.begin(); it != candidates.end(); ++it) {
|
||||
EXPECT_NE(*it, candidate) << "Duplicate candidate";
|
||||
}
|
||||
|
||||
candidates.push_back(candidate);
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user