Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Fix/disable tests that use private API (#191)
Browse files Browse the repository at this point in the history
Fix CI after #190 breaks. Related to #123.
  • Loading branch information
fibann committed Feb 17, 2020
1 parent 5bc8f23 commit e7b97ff
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "pch.h"

#include "interop/interop_api.h"
#include "interop_api.h"
#include "audio_frame.h"

#if !defined(MRSW_EXCLUDE_DEVICE_TESTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

#include "pch.h"

#include "data_channel.h"
#include "interop/interop_api.h"
#include "interop_api.h"

namespace {

Expand Down Expand Up @@ -129,10 +128,11 @@ TEST(DataChannel, InBand) {
mrsDataChannelInteropHandle data_channel_wrapper,
DataChannelHandle data_channel) {
ASSERT_EQ(kFakeInteropDataChannelHandle, data_channel_wrapper);
auto data2 =
(Microsoft::MixedReality::WebRTC::DataChannel*)data_channel;
ASSERT_NE(nullptr, data2);
ASSERT_EQ(channel_label, data2->label());
ASSERT_NE(nullptr, data_channel);

// TODO expose label
//ASSERT_EQ(channel_label, data2->label());

data2_ev.Set();
};
mrsPeerConnectionRegisterDataChannelAddedCallback(pc2.handle(),
Expand All @@ -153,8 +153,10 @@ TEST(DataChannel, InBand) {
mrsPeerConnectionAddDataChannel(pc1.handle(), interopHandle,
data_config, callbacks, &data1_handle));
ASSERT_NE(nullptr, data1_handle);
auto data1 = (Microsoft::MixedReality::WebRTC::DataChannel*)data1_handle;
ASSERT_EQ(channel_label, data1->label());

// TODO expose label
//ASSERT_EQ(channel_label, data1->label());

ASSERT_EQ(true, data2_ev.WaitFor(30s));

// Clean-up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include "pch.h"

#include "data_channel.h"
#include "interop/external_video_track_source_interop.h"
#include "interop/interop_api.h"
#include "interop/local_video_track_interop.h"
#include "external_video_track_source_interop.h"
#include "interop_api.h"
#include "local_video_track_interop.h"

#include "libyuv.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "pch.h"

#include "interop/interop_api.h"
#include "interop_api.h"

// Test fast path of mrsMemCpyStride() when data is packed.
TEST(MemoryUtils, MemCpyStride_Fast) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "../include/mrs_errors.h"
#include "../src/interop/interop_api.h"
#include "../src/interop/peer_connection_interop.h"
#include "../include/interop_api.h"
#include "../include/peer_connection_interop.h"

using namespace Microsoft::MixedReality::WebRTC;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "pch.h"

#include "interop/interop_api.h"
#include "interop_api.h"

TEST(PeerConnection, LocalNoIce) {
for (int i = 0; i < 3; ++i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "pch.h"

#include "interop/interop_api.h"
#include "interop_api.h"

// Copied from webrtc\pc\webrtcsdp_unittest.cc
static const char kSdpFullString[] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include "pch.h"

//< FIXME - Internal symbols not exported, need static linking
#if 0

#include "video_frame_observer.h"

using namespace Microsoft::MixedReality::WebRTC;
Expand Down Expand Up @@ -63,3 +66,5 @@ TEST(VideoFrameObserver, ReuseArgbScratchBuffer) {
ArgbBuffer* const buffer6 = observer.mock_GetArgbScratchBuffer(16, 18);
ASSERT_NE(buffer4, buffer6);
}

#endif // #if 0
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#include "pch.h"

#include "interop/external_video_track_source_interop.h"
#include "interop/interop_api.h"
#include "interop/local_video_track_interop.h"
#include "external_video_track_source_interop.h"
#include "interop_api.h"
#include "local_video_track_interop.h"

#if !defined(MRSW_EXCLUDE_DEVICE_TESTS)

Expand Down

0 comments on commit e7b97ff

Please sign in to comment.