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

Side by Side Diff: webrtc/media/engine/webrtcvideocapturer_unittest.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifdef HAVE_WEBRTC_VIDEO 11 #ifdef HAVE_WEBRTC_VIDEO
12 12
13 #include <stdio.h> 13 #include <stdio.h>
14 14
15 #include <memory> 15 #include <memory>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/gunit.h"
19 #include "webrtc/base/logging.h"
20 #include "webrtc/base/stringutils.h"
21 #include "webrtc/base/thread.h"
22 #include "webrtc/media/base/testutils.h" 18 #include "webrtc/media/base/testutils.h"
23 #include "webrtc/media/base/videocommon.h" 19 #include "webrtc/media/base/videocommon.h"
24 #include "webrtc/media/engine/fakewebrtcvcmfactory.h" 20 #include "webrtc/media/engine/fakewebrtcvcmfactory.h"
25 #include "webrtc/media/engine/webrtcvideocapturer.h" 21 #include "webrtc/media/engine/webrtcvideocapturer.h"
22 #include "webrtc/rtc_base/gunit.h"
23 #include "webrtc/rtc_base/logging.h"
24 #include "webrtc/rtc_base/stringutils.h"
25 #include "webrtc/rtc_base/thread.h"
26 26
27 using cricket::VideoFormat; 27 using cricket::VideoFormat;
28 28
29 static const std::string kTestDeviceName = "JuberTech FakeCam Q123"; 29 static const std::string kTestDeviceName = "JuberTech FakeCam Q123";
30 static const std::string kTestDeviceId = "foo://bar/baz"; 30 static const std::string kTestDeviceId = "foo://bar/baz";
31 const VideoFormat kDefaultVideoFormat = 31 const VideoFormat kDefaultVideoFormat =
32 VideoFormat(640, 400, VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY); 32 VideoFormat(640, 400, VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY);
33 33
34 class WebRtcVideoCapturerTest : public testing::Test { 34 class WebRtcVideoCapturerTest : public testing::Test {
35 public: 35 public:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 TEST_F(WebRtcVideoCapturerTest, TestCaptureWithoutInit) { 129 TEST_F(WebRtcVideoCapturerTest, TestCaptureWithoutInit) {
130 cricket::VideoFormat format; 130 cricket::VideoFormat format;
131 EXPECT_EQ(cricket::CS_FAILED, capturer_->Start(format)); 131 EXPECT_EQ(cricket::CS_FAILED, capturer_->Start(format));
132 EXPECT_TRUE(capturer_->GetCaptureFormat() == NULL); 132 EXPECT_TRUE(capturer_->GetCaptureFormat() == NULL);
133 EXPECT_FALSE(capturer_->IsRunning()); 133 EXPECT_FALSE(capturer_->IsRunning());
134 } 134 }
135 135
136 #endif // HAVE_WEBRTC_VIDEO 136 #endif // HAVE_WEBRTC_VIDEO
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideocapturer.cc ('k') | webrtc/media/engine/webrtcvideodecoderfactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698