| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/peerconnection/RTCDataChannel.h" | 5 #include "modules/peerconnection/RTCDataChannel.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "core/dom/DOMException.h" | 9 #include "core/dom/DOMException.h" |
| 10 #include "core/events/Event.h" | 10 #include "core/events/Event.h" |
| 11 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 12 #include "public/platform/WebRTCDataChannelHandler.h" | 12 #include "public/platform/WebRTCDataChannelHandler.h" |
| 13 #include "public/platform/WebVector.h" | 13 #include "public/platform/WebVector.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
| 16 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| 17 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 handler->drainBuffer(1); | 141 handler->drainBuffer(1); |
| 142 EXPECT_EQ(97U, channel->bufferedAmount()); | 142 EXPECT_EQ(97U, channel->bufferedAmount()); |
| 143 EXPECT_EQ(5U, channel->m_scheduledEvents.size()); // New event. | 143 EXPECT_EQ(5U, channel->m_scheduledEvents.size()); // New event. |
| 144 EXPECT_EQ( | 144 EXPECT_EQ( |
| 145 "bufferedamountlow", | 145 "bufferedamountlow", |
| 146 std::string(channel->m_scheduledEvents.back()->type().utf8().data())); | 146 std::string(channel->m_scheduledEvents.back()->type().utf8().data())); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace blink | 149 } // namespace blink |
| OLD | NEW |