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

Side by Side Diff: content/renderer/media/media_stream_impl_unittest.cc

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "content/renderer/media/media_stream_extra_data.h" 7 #include "content/renderer/media/media_stream_extra_data.h"
8 #include "content/renderer/media/media_stream_impl.h" 8 #include "content/renderer/media/media_stream_impl.h"
9 #include "content/renderer/media/mock_media_stream_dependency_factory.h" 9 #include "content/renderer/media/mock_media_stream_dependency_factory.h"
10 #include "content/renderer/media/mock_media_stream_dispatcher.h" 10 #include "content/renderer/media/mock_media_stream_dispatcher.h"
11 #include "content/renderer/media/video_capture_impl_manager.h" 11 #include "content/renderer/media/video_capture_impl_manager.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h" 13 #include "third_party/WebKit/public/platform/WebMediaStream.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamSourc e.h" 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamTrack .h" 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" 17 #include "third_party/WebKit/public/platform/WebVector.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class MediaStreamImplUnderTest : public MediaStreamImpl { 21 class MediaStreamImplUnderTest : public MediaStreamImpl {
22 public: 22 public:
23 enum RequestState { 23 enum RequestState {
24 REQUEST_NOT_STARTED, 24 REQUEST_NOT_STARTED,
25 REQUEST_NOT_COMPLETE, 25 REQUEST_NOT_COMPLETE,
26 REQUEST_SUCCEEDED, 26 REQUEST_SUCCEEDED,
27 REQUEST_FAILED, 27 REQUEST_FAILED,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 WebKit::WebMediaStream mixed_desc = RequestLocalMediaStream(true, true); 230 WebKit::WebMediaStream mixed_desc = RequestLocalMediaStream(true, true);
231 EXPECT_EQ(0, ms_dispatcher_->stop_stream_counter()); 231 EXPECT_EQ(0, ms_dispatcher_->stop_stream_counter());
232 EXPECT_EQ(1, ms_dispatcher_->request_stream_counter()); 232 EXPECT_EQ(1, ms_dispatcher_->request_stream_counter());
233 ms_impl_->FrameWillClose(NULL); 233 ms_impl_->FrameWillClose(NULL);
234 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); 234 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter());
235 ms_impl_->OnLocalMediaStreamStop(mixed_desc.label().utf8()); 235 ms_impl_->OnLocalMediaStreamStop(mixed_desc.label().utf8());
236 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); 236 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter());
237 } 237 }
238 238
239 } // namespace content 239 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | content/renderer/media/media_stream_registry_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698