OLD | NEW |
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 #include "content/browser/media/media_internals.h" | 5 #include "content/browser/media/media_internals.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "media/audio/audio_parameters.h" | 17 #include "media/base/audio_parameters.h" |
18 #include "media/base/channel_layout.h" | 18 #include "media/base/channel_layout.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 const int kTestComponentID = 0; | 23 const int kTestComponentID = 0; |
24 const char kTestDeviceID[] = "test-device-id"; | 24 const char kTestDeviceID[] = "test-device-id"; |
25 | 25 |
26 // This class encapsulates a MediaInternals reference. It also has some useful | 26 // This class encapsulates a MediaInternals reference. It also has some useful |
27 // methods to receive a callback, deserialize its associated data and expect | 27 // methods to receive a callback, deserialize its associated data and expect |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 ExpectStatus("closed"); | 306 ExpectStatus("closed"); |
307 } | 307 } |
308 | 308 |
309 INSTANTIATE_TEST_CASE_P( | 309 INSTANTIATE_TEST_CASE_P( |
310 MediaInternalsAudioLogTest, MediaInternalsAudioLogTest, testing::Values( | 310 MediaInternalsAudioLogTest, MediaInternalsAudioLogTest, testing::Values( |
311 media::AudioLogFactory::AUDIO_INPUT_CONTROLLER, | 311 media::AudioLogFactory::AUDIO_INPUT_CONTROLLER, |
312 media::AudioLogFactory::AUDIO_OUTPUT_CONTROLLER, | 312 media::AudioLogFactory::AUDIO_OUTPUT_CONTROLLER, |
313 media::AudioLogFactory::AUDIO_OUTPUT_STREAM)); | 313 media::AudioLogFactory::AUDIO_OUTPUT_STREAM)); |
314 | 314 |
315 } // namespace content | 315 } // namespace content |
OLD | NEW |