Skip to content

Commit

Permalink
OnSwitched の追加に伴いテストを修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Feb 19, 2024
1 parent c339cbb commit e209414
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/connect_disconnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class SoraClient : public std::enable_shared_from_this<SoraClient>,
void OnNotify(std::string text) override {}
void OnPush(std::string text) override {}
void OnMessage(std::string label, std::string data) override {}
void OnSwitched(std::string text) override {}

void OnTrack(rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver)
override {}
Expand Down
1 change: 1 addition & 0 deletions test/datachannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class SoraClient : public std::enable_shared_from_this<SoraClient>,
void OnNotify(std::string text) override {}
void OnPush(std::string text) override {}
void OnMessage(std::string label, std::string data) override {}
void OnSwitched(std::string data) override {}

void OnTrack(rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver)
override {}
Expand Down
3 changes: 3 additions & 0 deletions test/hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ void HelloSora::OnDisconnect(sora::SoraSignalingErrorCode ec,
RTC_LOG(LS_INFO) << "OnDisconnect: " << message;
ioc_->stop();
}
void HelloSora::OnSwitched(std::string text) {
RTC_LOG(LS_INFO) << "OnSwitched: " << text;
}

#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)

Expand Down
1 change: 1 addition & 0 deletions test/hello.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class HelloSora : public std::enable_shared_from_this<HelloSora>,
void OnNotify(std::string text) override {}
void OnPush(std::string text) override {}
void OnMessage(std::string label, std::string data) override {}
void OnSwitched(std::string text) override;

void OnTrack(rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver)
override {}
Expand Down
1 change: 1 addition & 0 deletions test/lyra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class SoraClient : public std::enable_shared_from_this<SoraClient>,
void OnNotify(std::string text) override {}
void OnPush(std::string text) override {}
void OnMessage(std::string label, std::string data) override {}
void OnSwitched(std::string data) override {}

void OnTrack(rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver)
override {}
Expand Down

0 comments on commit e209414

Please sign in to comment.