Index: content/renderer/media/mock_audio_device_factory.cc |
diff --git a/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.h b/content/renderer/media/mock_audio_device_factory.cc |
similarity index 25% |
copy from third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.h |
copy to content/renderer/media/mock_audio_device_factory.cc |
index c643d5ed04b26e954d8203a8c3b3fd73889bae35..80303c50f629fa60183e4c3a556d7a2e72f12331 100644 |
--- a/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.h |
+++ b/content/renderer/media/mock_audio_device_factory.cc |
@@ -2,33 +2,27 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef AcceptLanguagesResolver_h |
-#define AcceptLanguagesResolver_h |
+#include "content/renderer/media/mock_audio_device_factory.h" |
-#include "platform/PlatformExport.h" |
-#include "wtf/text/WTFString.h" |
+namespace content { |
-#include <unicode/uscript.h> |
+MockCapturerSource::MockCapturerSource() {} |
-namespace blink { |
+MockCapturerSource::~MockCapturerSource() {} |
-class PLATFORM_EXPORT AcceptLanguagesResolver { |
-public: |
- static UScriptCode preferredHanScript() { return m_preferredHanScript; } |
- static const char* preferredHanSkFontMgrLocale() |
- { |
- return m_preferredHanSkFontMgrLocale; |
- } |
+void MockCapturerSource::SetVolume(double volume) {} |
- static void acceptLanguagesChanged(const String&); |
+MockAudioDeviceFactory::MockAudioDeviceFactory() |
+ : AudioDeviceFactory(), mock_capturer_source_(new MockCapturerSource()), |
+ did_create_once_(false) {} |
- static void updateFromAcceptLanguages(const String&); |
+MockAudioDeviceFactory::~MockAudioDeviceFactory() {} |
-private: |
- static UScriptCode m_preferredHanScript; |
- static const char* m_preferredHanSkFontMgrLocale; |
-}; |
+scoped_refptr<media::AudioCapturerSource> |
+MockAudioDeviceFactory::CreateAudioCapturerSource(int render_frame_id) { |
+ CHECK(!did_create_once_); |
+ did_create_once_ = true; |
+ return scoped_refptr<media::AudioCapturerSource>(mock_capturer_source_); |
+} |
-} // namespace blink |
- |
-#endif // AcceptLanguagesResolver_h |
+} // namespace content |