OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/TestCommon.h" | 9 #include "content/shell/renderer/test_runner/TestCommon.h" |
10 #include "content/shell/renderer/test_runner/WebTask.h" | 10 #include "content/shell/renderer/test_runner/WebTask.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual unsigned short maxRetransmits() const OVERRIDE; | 28 virtual unsigned short maxRetransmits() const OVERRIDE; |
29 virtual blink::WebString protocol() const OVERRIDE; | 29 virtual blink::WebString protocol() const OVERRIDE; |
30 virtual bool negotiated() const OVERRIDE; | 30 virtual bool negotiated() const OVERRIDE; |
31 virtual unsigned short id() const OVERRIDE; | 31 virtual unsigned short id() const OVERRIDE; |
32 virtual unsigned long bufferedAmount() OVERRIDE; | 32 virtual unsigned long bufferedAmount() OVERRIDE; |
33 virtual bool sendStringData(const blink::WebString&) OVERRIDE; | 33 virtual bool sendStringData(const blink::WebString&) OVERRIDE; |
34 virtual bool sendRawData(const char*, size_t) OVERRIDE; | 34 virtual bool sendRawData(const char*, size_t) OVERRIDE; |
35 virtual void close() OVERRIDE; | 35 virtual void close() OVERRIDE; |
36 | 36 |
37 // WebTask related methods | 37 // WebTask related methods |
38 WebTaskList* taskList() { return &m_taskList; } | 38 WebTaskList* mutable_task_list() { return &m_taskList; } |
39 | 39 |
40 private: | 40 private: |
41 MockWebRTCDataChannelHandler(); | 41 MockWebRTCDataChannelHandler(); |
42 | 42 |
43 blink::WebRTCDataChannelHandlerClient* m_client; | 43 blink::WebRTCDataChannelHandlerClient* m_client; |
44 blink::WebString m_label; | 44 blink::WebString m_label; |
45 blink::WebRTCDataChannelInit m_init; | 45 blink::WebRTCDataChannelInit m_init; |
46 bool m_reliable; | 46 bool m_reliable; |
47 WebTaskList m_taskList; | 47 WebTaskList m_taskList; |
48 WebTestDelegate* m_delegate; | 48 WebTestDelegate* m_delegate; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDataChannelHandler); | 50 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDataChannelHandler); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace content | 53 } // namespace content |
54 | 54 |
55 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ | 55 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDATACHANNELHANDLER_H_ |
OLD | NEW |