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

Side by Side Diff: content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer_host/media/audio_input_sync_writer.h" 5 #include "content/browser/renderer_host/media/audio_input_sync_writer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 17 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "media/audio/audio_parameters.h"
19 #include "media/base/audio_bus.h" 18 #include "media/base/audio_bus.h"
19 #include "media/base/audio_parameters.h"
20 #include "media/base/channel_layout.h" 20 #include "media/base/channel_layout.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using ::testing::_; 24 using ::testing::_;
25 using base::TimeDelta; 25 using base::TimeDelta;
26 using media::AudioBus; 26 using media::AudioBus;
27 using media::AudioParameters; 27 using media::AudioParameters;
28 28
29 namespace content { 29 namespace content {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 EXPECT_TRUE(TestSocketAndFifoExpectations(kSegments, 0, 2)); 359 EXPECT_TRUE(TestSocketAndFifoExpectations(kSegments, 0, 2));
360 360
361 // Empty both. Should render a log call for emptying the fifo. 361 // Empty both. Should render a log call for emptying the fifo.
362 socket_->Read(kSegments); 362 socket_->Read(kSegments);
363 writer_->Write(audio_bus_.get(), 0, false, 0); 363 writer_->Write(audio_bus_.get(), 0, false, 0);
364 socket_->Read(3); 364 socket_->Read(3);
365 EXPECT_TRUE(TestSocketAndFifoExpectations(0, 3 * sizeof(uint32_t), 0)); 365 EXPECT_TRUE(TestSocketAndFifoExpectations(0, 3 * sizeof(uint32_t), 0));
366 } 366 }
367 367
368 } // namespace content 368 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698