Relanding https://code.google.com/p/webrtc/source/detail?r=7093, after it got
reverted due to some internal compile failures. In this CL changes are done in portallocator_unittest.cc, in particular to EXPECT_EQ checking in new tests. Original patch committed in https://code.google.com/p/webrtc/source/detail?r=7093 TBR=juberti@webrtc.org BUG=1179 Review URL: https://webrtc-codereview.appspot.com/22329004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7118 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -160,7 +160,6 @@ class BasicPortAllocatorSession : public PortAllocatorSession,
|
||||
|
||||
void set_ready() { ASSERT(state_ == STATE_INIT); state_ = STATE_READY; }
|
||||
void set_complete() {
|
||||
ASSERT(state_ == STATE_READY);
|
||||
state_ = STATE_COMPLETE;
|
||||
}
|
||||
void set_error() {
|
||||
@@ -201,6 +200,8 @@ class BasicPortAllocatorSession : public PortAllocatorSession,
|
||||
void OnPortAllocationComplete(AllocationSequence* seq);
|
||||
PortData* FindPort(Port* port);
|
||||
|
||||
bool CheckCandidateFilter(const Candidate& c);
|
||||
|
||||
BasicPortAllocator* allocator_;
|
||||
rtc::Thread* network_thread_;
|
||||
rtc::scoped_ptr<rtc::PacketSocketFactory> owned_socket_factory_;
|
||||
|
Reference in New Issue
Block a user