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

Side by Side Diff: media/audio/test_audio_input_controller_factory.h

Issue 8520033: Add OVERRIDE to media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « media/audio/simple_sources.h ('k') | media/base/async_filter_factory_base.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 5 #ifndef MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
6 #define MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 6 #define MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "media/audio/audio_input_controller.h" 9 #include "media/audio/audio_input_controller.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 TestAudioInputController(TestAudioInputControllerFactory* factory, 47 TestAudioInputController(TestAudioInputControllerFactory* factory,
48 EventHandler* event_handler, 48 EventHandler* event_handler,
49 SyncWriter* sync_writer); 49 SyncWriter* sync_writer);
50 virtual ~TestAudioInputController(); 50 virtual ~TestAudioInputController();
51 51
52 // Returns the event handler installed on the AudioInputController. 52 // Returns the event handler installed on the AudioInputController.
53 EventHandler* event_handler() const { return event_handler_; } 53 EventHandler* event_handler() const { return event_handler_; }
54 54
55 // Overriden to do nothing. It is assumed the caller will notify the event 55 // Overriden to do nothing. It is assumed the caller will notify the event
56 // handler with recorded data and other events. 56 // handler with recorded data and other events.
57 virtual void Record() {} 57 virtual void Record() OVERRIDE {}
58 virtual void Close() {} 58 virtual void Close() OVERRIDE {}
59 59
60 private: 60 private:
61 // These are not owned by us and expected to be valid for this object's 61 // These are not owned by us and expected to be valid for this object's
62 // lifetime. 62 // lifetime.
63 TestAudioInputControllerFactory* factory_; 63 TestAudioInputControllerFactory* factory_;
64 EventHandler* event_handler_; 64 EventHandler* event_handler_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(TestAudioInputController); 66 DISALLOW_COPY_AND_ASSIGN(TestAudioInputController);
67 }; 67 };
68 68
69 // Simple AudioInputController::Factory method that creates 69 // Simple AudioInputController::Factory method that creates
70 // TestAudioInputControllers. 70 // TestAudioInputControllers.
71 class TestAudioInputControllerFactory : public AudioInputController::Factory { 71 class TestAudioInputControllerFactory : public AudioInputController::Factory {
72 public: 72 public:
73 TestAudioInputControllerFactory(); 73 TestAudioInputControllerFactory();
74 74
75 // AudioInputController::Factory methods. 75 // AudioInputController::Factory methods.
76 virtual AudioInputController* Create( 76 virtual AudioInputController* Create(
77 AudioInputController::EventHandler* event_handler, 77 AudioInputController::EventHandler* event_handler,
78 AudioParameters params); 78 AudioParameters params) OVERRIDE;
79 79
80 TestAudioInputController* controller() const { return controller_; } 80 TestAudioInputController* controller() const { return controller_; }
81 81
82 private: 82 private:
83 friend class TestAudioInputController; 83 friend class TestAudioInputController;
84 84
85 // Invoked by a TestAudioInputController when it gets destroyed. 85 // Invoked by a TestAudioInputController when it gets destroyed.
86 void OnTestAudioInputControllerDestroyed( 86 void OnTestAudioInputControllerDestroyed(
87 TestAudioInputController* controller); 87 TestAudioInputController* controller);
88 88
89 // The caller of Create owns this object. 89 // The caller of Create owns this object.
90 TestAudioInputController* controller_; 90 TestAudioInputController* controller_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(TestAudioInputControllerFactory); 92 DISALLOW_COPY_AND_ASSIGN(TestAudioInputControllerFactory);
93 }; 93 };
94 94
95 } // namespace media 95 } // namespace media
96 96
97 #endif // MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 97 #endif // MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/audio/simple_sources.h ('k') | media/base/async_filter_factory_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698