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

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

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location for peerconnection_unittests.isolate Created 4 years, 11 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 * libjingle 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * Copyright 2012 Google Inc.
4 * 3 *
5 * Redistribution and use in source and binary forms, with or without 4 * Use of this source code is governed by a BSD-style license
6 * modification, are permitted provided that the following conditions are met: 5 * that can be found in the LICENSE file in the root of the source
7 * 6 * tree. An additional intellectual property rights grant can be found
8 * 1. Redistributions of source code must retain the above copyright notice, 7 * in the file PATENTS. All contributing project authors may
9 * this list of conditions and the following disclaimer. 8 * be found in the AUTHORS file in the root of the source tree.
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 9 */
27 10
28 #include <string> 11 #include <string>
29 #include <utility> 12 #include <utility>
30 13
31 #include "talk/app/webrtc/audiotrack.h" 14 #include "webrtc/api/audiotrack.h"
32 #include "talk/app/webrtc/jsepsessiondescription.h" 15 #include "webrtc/api/jsepsessiondescription.h"
33 #include "talk/app/webrtc/mediastream.h" 16 #include "webrtc/api/mediastream.h"
34 #include "talk/app/webrtc/mediastreaminterface.h" 17 #include "webrtc/api/mediastreaminterface.h"
35 #include "talk/app/webrtc/peerconnection.h" 18 #include "webrtc/api/peerconnection.h"
36 #include "talk/app/webrtc/peerconnectioninterface.h" 19 #include "webrtc/api/peerconnectioninterface.h"
37 #include "talk/app/webrtc/rtpreceiverinterface.h" 20 #include "webrtc/api/rtpreceiverinterface.h"
38 #include "talk/app/webrtc/rtpsenderinterface.h" 21 #include "webrtc/api/rtpsenderinterface.h"
39 #include "talk/app/webrtc/streamcollection.h" 22 #include "webrtc/api/streamcollection.h"
40 #ifdef WEBRTC_ANDROID 23 #ifdef WEBRTC_ANDROID
41 #include "talk/app/webrtc/test/androidtestinitializer.h" 24 #include "webrtc/api/test/androidtestinitializer.h"
42 #endif 25 #endif
43 #include "talk/app/webrtc/test/fakeconstraints.h" 26 #include "webrtc/api/test/fakeconstraints.h"
44 #include "talk/app/webrtc/test/fakedtlsidentitystore.h" 27 #include "webrtc/api/test/fakedtlsidentitystore.h"
45 #include "talk/app/webrtc/test/mockpeerconnectionobservers.h" 28 #include "webrtc/api/test/mockpeerconnectionobservers.h"
46 #include "talk/app/webrtc/test/testsdpstrings.h" 29 #include "webrtc/api/test/testsdpstrings.h"
47 #include "talk/app/webrtc/videosource.h" 30 #include "webrtc/api/videosource.h"
48 #include "talk/app/webrtc/videotrack.h" 31 #include "webrtc/api/videotrack.h"
49 #include "talk/media/base/fakevideocapturer.h" 32 #include "talk/media/base/fakevideocapturer.h"
50 #include "talk/media/sctp/sctpdataengine.h" 33 #include "talk/media/sctp/sctpdataengine.h"
51 #include "talk/session/media/mediasession.h" 34 #include "talk/session/media/mediasession.h"
52 #include "webrtc/base/gunit.h" 35 #include "webrtc/base/gunit.h"
53 #include "webrtc/base/scoped_ptr.h" 36 #include "webrtc/base/scoped_ptr.h"
54 #include "webrtc/base/ssladapter.h" 37 #include "webrtc/base/ssladapter.h"
55 #include "webrtc/base/sslstreamadapter.h" 38 #include "webrtc/base/sslstreamadapter.h"
56 #include "webrtc/base/stringutils.h" 39 #include "webrtc/base/stringutils.h"
57 #include "webrtc/base/thread.h" 40 #include "webrtc/base/thread.h"
58 #include "webrtc/p2p/client/fakeportallocator.h" 41 #include "webrtc/p2p/client/fakeportallocator.h"
(...skipping 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 FakeConstraints updated_answer_c; 2499 FakeConstraints updated_answer_c;
2517 answer_c.SetMandatoryReceiveAudio(false); 2500 answer_c.SetMandatoryReceiveAudio(false);
2518 answer_c.SetMandatoryReceiveVideo(false); 2501 answer_c.SetMandatoryReceiveVideo(false);
2519 2502
2520 cricket::MediaSessionOptions updated_answer_options; 2503 cricket::MediaSessionOptions updated_answer_options;
2521 EXPECT_TRUE( 2504 EXPECT_TRUE(
2522 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); 2505 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options));
2523 EXPECT_TRUE(updated_answer_options.has_audio()); 2506 EXPECT_TRUE(updated_answer_options.has_audio());
2524 EXPECT_TRUE(updated_answer_options.has_video()); 2507 EXPECT_TRUE(updated_answer_options.has_video());
2525 } 2508 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698