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

Side by Side Diff: webrtc/api/mediastream_unittest.cc

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « webrtc/DEPS ('k') | webrtc/api/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2011 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 #include <string> 11 #include <string>
12 12
13 #include "webrtc/api/audiotrack.h" 13 #include "webrtc/api/audiotrack.h"
14 #include "webrtc/api/mediastream.h" 14 #include "webrtc/api/mediastream.h"
15 #include "webrtc/api/videotrack.h" 15 #include "webrtc/api/videotrack.h"
16 #include "webrtc/api/test/fakevideotracksource.h" 16 #include "webrtc/api/test/fakevideotracksource.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "webrtc/test/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "webrtc/test/gtest.h"
19 #include "webrtc/base/gunit.h" 19 #include "webrtc/base/gunit.h"
20 #include "webrtc/base/refcount.h" 20 #include "webrtc/base/refcount.h"
21 21
22 static const char kStreamLabel1[] = "local_stream_1"; 22 static const char kStreamLabel1[] = "local_stream_1";
23 static const char kVideoTrackId[] = "dummy_video_cam_1"; 23 static const char kVideoTrackId[] = "dummy_video_cam_1";
24 static const char kAudioTrackId[] = "dummy_microphone_1"; 24 static const char kAudioTrackId[] = "dummy_microphone_1";
25 25
26 using rtc::scoped_refptr; 26 using rtc::scoped_refptr;
27 using ::testing::Exactly; 27 using ::testing::Exactly;
28 28
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ChangeTrack(video_track.get()); 145 ChangeTrack(video_track.get());
146 } 146 }
147 147
148 TEST_F(MediaStreamTest, ChangeAudioTrack) { 148 TEST_F(MediaStreamTest, ChangeAudioTrack) {
149 scoped_refptr<webrtc::AudioTrackInterface> audio_track( 149 scoped_refptr<webrtc::AudioTrackInterface> audio_track(
150 stream_->GetAudioTracks()[0]); 150 stream_->GetAudioTracks()[0]);
151 ChangeTrack(audio_track.get()); 151 ChangeTrack(audio_track.get());
152 } 152 }
153 153
154 } // namespace webrtc 154 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/DEPS ('k') | webrtc/api/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698