
This CL implements a unit test to cover an case where comfort noise packets should be discarded. The situation arises when NetEq gets a duplicate comfort noise packet. Without this check, the duplicate would be decoded, and a the timing would shift. As it turned out, the corner-case funcionality was not completely accurate in NetEq4. This is because decision_logic_::cng_state_ is set after the corner-case check. In the old NetEq3, the corresponding state was changed before the check. This is now fixed. R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9639005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5685 4adac7df-926f-26a2-2b94-8c16560cd09d