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

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

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/sync_socket.h" 9 #include "base/sync_socket.h"
10 #include "content/browser/media/capture/audio_mirroring_manager.h" 10 #include "content/browser/media/capture/audio_mirroring_manager.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 scoped_ptr<base::SyncSocket> sync_socket_; 150 scoped_ptr<base::SyncSocket> sync_socket_;
151 uint32 shared_memory_length_; 151 uint32 shared_memory_length_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererHost); 153 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererHost);
154 }; 154 };
155 155
156 class AudioRendererHostTest : public testing::Test { 156 class AudioRendererHostTest : public testing::Test {
157 public: 157 public:
158 AudioRendererHostTest() { 158 AudioRendererHostTest() {
159 audio_manager_.reset(media::AudioManager::CreateForTesting()); 159 audio_manager_.reset(media::AudioManager::CreateForTesting());
160 CommandLine::ForCurrentProcess()->AppendSwitch( 160 base::CommandLine::ForCurrentProcess()->AppendSwitch(
161 switches::kUseFakeDeviceForMediaStream); 161 switches::kUseFakeDeviceForMediaStream);
162 media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get())); 162 media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get()));
163 host_ = new MockAudioRendererHost(audio_manager_.get(), 163 host_ = new MockAudioRendererHost(audio_manager_.get(),
164 &mirroring_manager_, 164 &mirroring_manager_,
165 MediaInternals::GetInstance(), 165 MediaInternals::GetInstance(),
166 media_stream_manager_.get()); 166 media_stream_manager_.get());
167 167
168 // Simulate IPC channel connected. 168 // Simulate IPC channel connected.
169 host_->set_peer_pid_for_testing(base::GetCurrentProcId()); 169 host_->set_peer_pid_for_testing(base::GetCurrentProcId());
170 } 170 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 347 }
348 348
349 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) { 349 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) {
350 Create(true); 350 Create(true);
351 Close(); 351 Close();
352 } 352 }
353 353
354 // TODO(hclam): Add tests for data conversation in low latency mode. 354 // TODO(hclam): Add tests for data conversation in low latency mode.
355 355
356 } // namespace content 356 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698