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

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

Issue 9584023: Move MockResourceContext to content/test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam review Created 8 years, 9 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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "content/browser/browser_thread_impl.h" 9 #include "content/browser/browser_thread_impl.h"
10 #include "content/browser/mock_resource_context.h"
11 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 10 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
12 #include "content/browser/renderer_host/media/media_stream_manager.h" 11 #include "content/browser/renderer_host/media/media_stream_manager.h"
13 #include "content/browser/renderer_host/media/video_capture_manager.h" 12 #include "content/browser/renderer_host/media/video_capture_manager.h"
14 #include "content/common/media/media_stream_messages.h" 13 #include "content/common/media/media_stream_messages.h"
15 #include "content/common/media/media_stream_options.h" 14 #include "content/common/media/media_stream_options.h"
15 #include "content/test/mock_resource_context.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 #include "media/audio/audio_manager.h" 17 #include "media/audio/audio_manager.h"
18 #include "net/url_request/url_request_context.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 21
21 using ::testing::_; 22 using ::testing::_;
22 using ::testing::DeleteArg; 23 using ::testing::DeleteArg;
23 using ::testing::DoAll; 24 using ::testing::DoAll;
24 using ::testing::Return; 25 using ::testing::Return;
25 using content::BrowserThread; 26 using content::BrowserThread;
26 27
27 using content::BrowserThreadImpl; 28 using content::BrowserThreadImpl;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 EXPECT_EQ(host_->video_devices_.size(), 0u); 307 EXPECT_EQ(host_->video_devices_.size(), 0u);
307 EXPECT_EQ(host_->NumberOfStreams(), 1u); 308 EXPECT_EQ(host_->NumberOfStreams(), 1u);
308 309
309 // TODO(perkj): test audio device failure? 310 // TODO(perkj): test audio device failure?
310 311
311 host_->OnStopGeneratedStream(label); 312 host_->OnStopGeneratedStream(label);
312 EXPECT_EQ(host_->NumberOfStreams(), 0u); 313 EXPECT_EQ(host_->NumberOfStreams(), 0u);
313 } 314 }
314 315
315 }; // namespace media_stream 316 }; // namespace media_stream
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698