mirror of
				https://github.com/pion/mediadevices.git
				synced 2025-10-31 03:46:23 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			576 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			576 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris
 | |
| // +build dragonfly freebsd linux netbsd openbsd solaris
 | |
| 
 | |
| package vaapi
 | |
| 
 | |
| import (
 | |
| 	"github.com/pion/mediadevices/pkg/codec"
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestVP9ShouldImplementBitRateControl(t *testing.T) {
 | |
| 	t.SkipNow() // TODO: Implement bit rate control
 | |
| 
 | |
| 	e := &encoderVP9{}
 | |
| 	if _, ok := e.Controller().(codec.BitRateController); !ok {
 | |
| 		t.Error()
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func TestVP9ShouldImplementKeyFrameControl(t *testing.T) {
 | |
| 	e := &encoderVP9{}
 | |
| 	if _, ok := e.Controller().(codec.KeyFrameController); !ok {
 | |
| 		t.Error()
 | |
| 	}
 | |
| }
 | 
