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

Unified Diff: third_party/go/src/golang.org/x/mobile/audio/audio_test.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/go/src/golang.org/x/mobile/audio/audio_test.go
diff --git a/third_party/go/src/golang.org/x/mobile/audio/audio_test.go b/third_party/go/src/golang.org/x/mobile/audio/audio_test.go
deleted file mode 100644
index a652b114aec5bae4aea6abe1ff8faf9e1ecc1bae..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/audio/audio_test.go
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build darwin
-
-package audio
-
-import (
- "testing"
- "time"
-)
-
-func TestNoOp(t *testing.T) {
- var p *Player
- if err := p.Play(); err != nil {
- t.Errorf("no-op player failed to play: %v", err)
- }
- if err := p.Pause(); err != nil {
- t.Errorf("no-op player failed to pause: %v", err)
- }
- if err := p.Stop(); err != nil {
- t.Errorf("no-op player failed to stop: %v", err)
- }
- if c := p.Current(); c != time.Duration(0) {
- t.Errorf("no-op player returns a non-zero playback position: %v", c)
- }
- if tot := p.Total(); tot != time.Duration(0) {
- t.Errorf("no-op player returns a non-zero total: %v", tot)
- }
- if vol := p.Volume(); vol != 0 {
- t.Errorf("no-op player returns a non-zero total: %v", vol)
- }
- if s := p.State(); s != Unknown {
- t.Errorf("playing state: %v", s)
- }
- p.SetVolume(0.1)
- p.Seek(time.Duration(100))
- p.Destroy()
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/audio/audio.go ('k') | third_party/go/src/golang.org/x/mobile/bind/bind.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698