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

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

Issue 2564683002: Adding error enum to be used by PeerConnectionInterface methods. (Closed)
Patch Set: . Created 4 years 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/api/peerconnectioninterface.h ('k') | no next file » | 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 <memory> 11 #include <memory>
12 #include <sstream>
12 #include <string> 13 #include <string>
13 #include <utility> 14 #include <utility>
14 15
15 #include "webrtc/api/audiotrack.h" 16 #include "webrtc/api/audiotrack.h"
16 #include "webrtc/api/jsepsessiondescription.h" 17 #include "webrtc/api/jsepsessiondescription.h"
17 #include "webrtc/api/mediastream.h" 18 #include "webrtc/api/mediastream.h"
18 #include "webrtc/api/mediastreaminterface.h" 19 #include "webrtc/api/mediastreaminterface.h"
19 #include "webrtc/api/peerconnection.h" 20 #include "webrtc/api/peerconnection.h"
20 #include "webrtc/api/peerconnectioninterface.h" 21 #include "webrtc/api/peerconnectioninterface.h"
21 #include "webrtc/api/rtpreceiverinterface.h" 22 #include "webrtc/api/rtpreceiverinterface.h"
(...skipping 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2982 FakeConstraints updated_answer_c; 2983 FakeConstraints updated_answer_c;
2983 answer_c.SetMandatoryReceiveAudio(false); 2984 answer_c.SetMandatoryReceiveAudio(false);
2984 answer_c.SetMandatoryReceiveVideo(false); 2985 answer_c.SetMandatoryReceiveVideo(false);
2985 2986
2986 cricket::MediaSessionOptions updated_answer_options; 2987 cricket::MediaSessionOptions updated_answer_options;
2987 EXPECT_TRUE( 2988 EXPECT_TRUE(
2988 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); 2989 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options));
2989 EXPECT_TRUE(updated_answer_options.has_audio()); 2990 EXPECT_TRUE(updated_answer_options.has_audio());
2990 EXPECT_TRUE(updated_answer_options.has_video()); 2991 EXPECT_TRUE(updated_answer_options.has_video());
2991 } 2992 }
2993
2994 TEST(RtcErrorTest, OstreamOperator) {
2995 std::ostringstream oss;
2996 oss << webrtc::RtcError::NONE << ' '
2997 << webrtc::RtcError::INVALID_PARAMETER << ' '
2998 << webrtc::RtcError::INTERNAL_ERROR;
2999 EXPECT_EQ("NONE INVALID_PARAMETER INTERNAL_ERROR", oss.str());
3000 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698