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

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

Issue 629143003: Replace OVERRIDE and FINAL with override and final in content/shell/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/web_task.h" 9 #include "content/shell/renderer/test_runner/web_task.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 10 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
11 #include "third_party/WebKit/public/platform/WebRTCDTMFSenderHandler.h" 11 #include "third_party/WebKit/public/platform/WebRTCDTMFSenderHandler.h"
12 #include "third_party/WebKit/public/platform/WebString.h" 12 #include "third_party/WebKit/public/platform/WebString.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class WebTestDelegate; 16 class WebTestDelegate;
17 17
18 class MockWebRTCDTMFSenderHandler : public blink::WebRTCDTMFSenderHandler { 18 class MockWebRTCDTMFSenderHandler : public blink::WebRTCDTMFSenderHandler {
19 public: 19 public:
20 MockWebRTCDTMFSenderHandler(const blink::WebMediaStreamTrack& track, 20 MockWebRTCDTMFSenderHandler(const blink::WebMediaStreamTrack& track,
21 WebTestDelegate* delegate); 21 WebTestDelegate* delegate);
22 22
23 // WebRTCDTMFSenderHandler related methods 23 // WebRTCDTMFSenderHandler related methods
24 virtual void setClient(blink::WebRTCDTMFSenderHandlerClient* client) OVERRIDE; 24 virtual void setClient(blink::WebRTCDTMFSenderHandlerClient* client) override;
25 virtual blink::WebString currentToneBuffer() OVERRIDE; 25 virtual blink::WebString currentToneBuffer() override;
26 virtual bool canInsertDTMF() OVERRIDE; 26 virtual bool canInsertDTMF() override;
27 virtual bool insertDTMF(const blink::WebString& tones, 27 virtual bool insertDTMF(const blink::WebString& tones,
28 long duration, 28 long duration,
29 long inter_tone_gap) OVERRIDE; 29 long inter_tone_gap) override;
30 30
31 // WebTask related methods 31 // WebTask related methods
32 WebTaskList* mutable_task_list() { return &task_list_; } 32 WebTaskList* mutable_task_list() { return &task_list_; }
33 33
34 void ClearToneBuffer() { tone_buffer_.reset(); } 34 void ClearToneBuffer() { tone_buffer_.reset(); }
35 35
36 private: 36 private:
37 MockWebRTCDTMFSenderHandler(); 37 MockWebRTCDTMFSenderHandler();
38 38
39 blink::WebRTCDTMFSenderHandlerClient* client_; 39 blink::WebRTCDTMFSenderHandlerClient* client_;
40 blink::WebMediaStreamTrack track_; 40 blink::WebMediaStreamTrack track_;
41 blink::WebString tone_buffer_; 41 blink::WebString tone_buffer_;
42 WebTaskList task_list_; 42 WebTaskList task_list_;
43 WebTestDelegate* delegate_; 43 WebTestDelegate* delegate_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDTMFSenderHandler); 45 DISALLOW_COPY_AND_ASSIGN(MockWebRTCDTMFSenderHandler);
46 }; 46 };
47 47
48 } // namespace content 48 } // namespace content
49 49
50 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_ 50 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCDTMFSENDERHANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698