| Index: media/base/fake_media_resources.cc
|
| diff --git a/media/base/fake_media_resources.cc b/media/base/fake_media_resources.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..67ac7262403124f040945d03062cf5b21640af87
|
| --- /dev/null
|
| +++ b/media/base/fake_media_resources.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/strings/utf_string_conversions.h"
|
| +#include "media/base/media_resources.h"
|
| +
|
| +namespace media {
|
| +
|
| +base::string16 FakeLocalizedStringProvider(MessageId message_id) {
|
| + if (message_id == DEFAULT_AUDIO_DEVICE_NAME)
|
| + return base::ASCIIToUTF16("Default");
|
| +
|
| + return base::ASCIIToUTF16("FakeString");
|
| +}
|
| +
|
| +void SetUpFakeMediaResources() {
|
| + SetLocalizedStringProvider(FakeLocalizedStringProvider);
|
| +}
|
| +
|
| +} // namespace media
|
|
|