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

Unified Diff: third_party/go/src/golang.org/x/mobile/bind/seq/seq_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/bind/seq/seq_test.go
diff --git a/third_party/go/src/golang.org/x/mobile/bind/seq/seq_test.go b/third_party/go/src/golang.org/x/mobile/bind/seq/seq_test.go
deleted file mode 100644
index cc2429273576277e5930934271b0fe9299a362a5..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/bind/seq/seq_test.go
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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.
-
-package seq
-
-import "testing"
-
-func TestBuffer(t *testing.T) {
- buf := new(Buffer)
- buf.WriteInt64(1 << 42)
- buf.WriteInt32(1 << 13)
- buf.WriteUTF16("Hello, world")
- buf.WriteFloat64(4.02)
- buf.WriteFloat32(1.2)
- buf.WriteGoRef(new(int))
- buf.WriteGoRef(new(int))
-
- buf.Offset = 0
-
- if got, want := buf.ReadInt64(), int64(1<<42); got != want {
- t.Errorf("buf.ReadInt64()=%d, want %d", got, want)
- }
- if got, want := buf.ReadInt32(), int32(1<<13); got != want {
- t.Errorf("buf.ReadInt32()=%d, want %d", got, want)
- }
- if got, want := buf.ReadUTF16(), "Hello, world"; got != want {
- t.Errorf("buf.ReadUTF16()=%q, want %q", got, want)
- }
- if got, want := buf.ReadFloat64(), 4.02; got != want {
- t.Errorf("buf.ReadFloat64()=%f, want %f", got, want)
- }
- if got, want := buf.ReadFloat32(), float32(1.2); got != want {
- t.Errorf("buf.ReadFloat32()=%f, want %f", got, want)
- }
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/bind/seq/seq.go ('k') | third_party/go/src/golang.org/x/mobile/bind/seq/utf16.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698