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

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

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h>
6
5 #include "base/bind.h" 7 #include "base/bind.h"
6 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
7 #include "base/callback.h" 9 #include "base/callback.h"
8 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 11 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
11 #include "base/threading/thread_checker_impl.h" 13 #include "base/threading/thread_checker_impl.h"
12 #include "content/child/child_process.h" 14 #include "content/child/child_process.h"
13 #include "content/renderer/media/media_stream_video_track.h" 15 #include "content/renderer/media/media_stream_video_track.h"
14 #include "content/renderer/media/mock_media_stream_video_sink.h" 16 #include "content/renderer/media/mock_media_stream_video_sink.h"
15 #include "content/renderer/media/mock_media_stream_video_source.h" 17 #include "content/renderer/media/mock_media_stream_video_source.h"
16 #include "media/base/video_frame.h" 18 #include "media/base/video_frame.h"
17 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/WebKit/public/web/WebHeap.h" 20 #include "third_party/WebKit/public/web/WebHeap.h"
19 21
20 namespace content { 22 namespace content {
21 23
22 const uint8 kBlackValue = 0x00; 24 const uint8_t kBlackValue = 0x00;
23 const uint8 kColorValue = 0xAB; 25 const uint8_t kColorValue = 0xAB;
24 26
25 ACTION_P(RunClosure, closure) { 27 ACTION_P(RunClosure, closure) {
26 closure.Run(); 28 closure.Run();
27 } 29 }
28 30
29 class MediaStreamVideoTrackTest : public ::testing::Test { 31 class MediaStreamVideoTrackTest : public ::testing::Test {
30 public: 32 public:
31 MediaStreamVideoTrackTest() 33 MediaStreamVideoTrackTest()
32 : child_process_(new ChildProcess()), 34 : child_process_(new ChildProcess()),
33 mock_source_(new MockMediaStreamVideoSource(false)), 35 mock_source_(new MockMediaStreamVideoSource(false)),
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 MediaStreamVideoTrack* const native_track2 = 226 MediaStreamVideoTrack* const native_track2 =
225 MediaStreamVideoTrack::GetVideoTrack(track2); 227 MediaStreamVideoTrack::GetVideoTrack(track2);
226 native_track2->Stop(); 228 native_track2->Stop();
227 EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateEnded, sink2.state()); 229 EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateEnded, sink2.state());
228 EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateEnded, 230 EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateEnded,
229 blink_source().readyState()); 231 blink_source().readyState());
230 MediaStreamVideoSink::RemoveFromVideoTrack(&sink2, track2); 232 MediaStreamVideoSink::RemoveFromVideoTrack(&sink2, track2);
231 } 233 }
232 234
233 } // namespace content 235 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_track.cc ('k') | content/renderer/media/midi_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698