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

Side by Side Diff: media/cast/test/fake_video_encode_accelerator.h

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (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
« no previous file with comments | « media/cast/test/fake_single_thread_task_runner.h ('k') | media/cast/test/loopback_transport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include "media/video/video_encode_accelerator.h" 8 #include "media/video/video_encode_accelerator.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 11 matching lines...) Expand all
22 namespace test { 22 namespace test {
23 23
24 class FakeVideoEncodeAccelerator : public VideoEncodeAccelerator { 24 class FakeVideoEncodeAccelerator : public VideoEncodeAccelerator {
25 public: 25 public:
26 explicit FakeVideoEncodeAccelerator( 26 explicit FakeVideoEncodeAccelerator(
27 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 27 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
28 std::vector<uint32>* stored_bitrates); 28 std::vector<uint32>* stored_bitrates);
29 virtual ~FakeVideoEncodeAccelerator(); 29 virtual ~FakeVideoEncodeAccelerator();
30 30
31 virtual std::vector<VideoEncodeAccelerator::SupportedProfile> 31 virtual std::vector<VideoEncodeAccelerator::SupportedProfile>
32 GetSupportedProfiles() OVERRIDE; 32 GetSupportedProfiles() override;
33 virtual bool Initialize(media::VideoFrame::Format input_format, 33 virtual bool Initialize(media::VideoFrame::Format input_format,
34 const gfx::Size& input_visible_size, 34 const gfx::Size& input_visible_size,
35 VideoCodecProfile output_profile, 35 VideoCodecProfile output_profile,
36 uint32 initial_bitrate, 36 uint32 initial_bitrate,
37 Client* client) OVERRIDE; 37 Client* client) override;
38 38
39 virtual void Encode(const scoped_refptr<VideoFrame>& frame, 39 virtual void Encode(const scoped_refptr<VideoFrame>& frame,
40 bool force_keyframe) OVERRIDE; 40 bool force_keyframe) override;
41 41
42 virtual void UseOutputBitstreamBuffer(const BitstreamBuffer& buffer) OVERRIDE; 42 virtual void UseOutputBitstreamBuffer(const BitstreamBuffer& buffer) override;
43 43
44 virtual void RequestEncodingParametersChange(uint32 bitrate, 44 virtual void RequestEncodingParametersChange(uint32 bitrate,
45 uint32 framerate) OVERRIDE; 45 uint32 framerate) override;
46 46
47 virtual void Destroy() OVERRIDE; 47 virtual void Destroy() override;
48 48
49 void SendDummyFrameForTesting(bool key_frame); 49 void SendDummyFrameForTesting(bool key_frame);
50 void SetWillInitializationSucceed(bool will_initialization_succeed) { 50 void SetWillInitializationSucceed(bool will_initialization_succeed) {
51 will_initialization_succeed_ = will_initialization_succeed; 51 will_initialization_succeed_ = will_initialization_succeed;
52 } 52 }
53 53
54 private: 54 private:
55 void DoRequireBitstreamBuffers(unsigned int input_count, 55 void DoRequireBitstreamBuffers(unsigned int input_count,
56 const gfx::Size& input_coded_size, 56 const gfx::Size& input_coded_size,
57 size_t output_buffer_size) const; 57 size_t output_buffer_size) const;
(...skipping 12 matching lines...) Expand all
70 base::WeakPtrFactory<FakeVideoEncodeAccelerator> weak_this_factory_; 70 base::WeakPtrFactory<FakeVideoEncodeAccelerator> weak_this_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(FakeVideoEncodeAccelerator); 72 DISALLOW_COPY_AND_ASSIGN(FakeVideoEncodeAccelerator);
73 }; 73 };
74 74
75 } // namespace test 75 } // namespace test
76 } // namespace cast 76 } // namespace cast
77 } // namespace media 77 } // namespace media
78 78
79 #endif // MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ 79 #endif // MEDIA_CAST_TEST_FAKE_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/cast/test/fake_single_thread_task_runner.h ('k') | media/cast/test/loopback_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698