Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: content/shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h

Issue 279403006: Update WebFrameTestProxy and WebTestProxy to mostly follow Chrome style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MOCKWEBRTCDTMFSENDERHANDLER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_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 10 matching lines...) Expand all
21 MockWebRTCDTMFSenderHandler(const blink::WebMediaStreamTrack&, WebTestDelega te*); 21 MockWebRTCDTMFSenderHandler(const blink::WebMediaStreamTrack&, WebTestDelega te*);
22 22
23 virtual void setClient(blink::WebRTCDTMFSenderHandlerClient*) OVERRIDE; 23 virtual void setClient(blink::WebRTCDTMFSenderHandlerClient*) OVERRIDE;
24 24
25 virtual blink::WebString currentToneBuffer() OVERRIDE; 25 virtual blink::WebString currentToneBuffer() OVERRIDE;
26 26
27 virtual bool canInsertDTMF() OVERRIDE; 27 virtual bool canInsertDTMF() OVERRIDE;
28 virtual bool insertDTMF(const blink::WebString& tones, long duration, long i nterToneGap) OVERRIDE; 28 virtual bool insertDTMF(const blink::WebString& tones, long duration, long i nterToneGap) OVERRIDE;
29 29
30 // WebTask related methods 30 // WebTask related methods
31 WebTaskList* taskList() { return &m_taskList; } 31 WebTaskList* mutable_task_list() { return &m_taskList; }
32 void clearToneBuffer() { m_toneBuffer.reset(); } 32 void clearToneBuffer() { m_toneBuffer.reset(); }
33 33
34 private: 34 private:
35 MockWebRTCDTMFSenderHandler(); 35 MockWebRTCDTMFSenderHandler();
36 36
37 blink::WebRTCDTMFSenderHandlerClient* m_client; 37 blink::WebRTCDTMFSenderHandlerClient* m_client;
38 blink::WebMediaStreamTrack m_track; 38 blink::WebMediaStreamTrack m_track;
39 blink::WebString m_toneBuffer; 39 blink::WebString m_toneBuffer;
40 WebTaskList m_taskList; 40 WebTaskList m_taskList;
41 WebTestDelegate* m_delegate; 41 WebTestDelegate* m_delegate;
42 42
43 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDTMFSenderHandler); 43 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDTMFSenderHandler);
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_ 48 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698