Use a full API pointer instead of settingEngine

This replaces context pointers in many
RTC objects (to be more consistent)

Relates to #333
This commit is contained in:
Woodrow Douglass
2019-01-23 08:40:32 -05:00
committed by Michiel De Backker
parent 3aee69ea60
commit 9458d58a04
6 changed files with 25 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ func TestSettingEngine(t *testing.T) {
t.Fatalf("SettingEngine defaults aren't as expected.")
}
dc := &RTCDataChannel{settingEngine: &api.settingEngine}
dc := &RTCDataChannel{api: api}
_, err := dc.Detach()
if err == nil {
@@ -41,7 +41,7 @@ func TestSettingEngine(t *testing.T) {
api.settingEngine.DetachDataChannels()
dc = &RTCDataChannel{settingEngine: &api.settingEngine}
dc = &RTCDataChannel{api: api}
_, err = dc.Detach()
if err == nil {