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

Side by Side Diff: mojo/go/tests/system_test.go

Issue 556813003: Add Go build support for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: got full gn build working Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 package tests
2
3 import "mojo/go/system/embedder"
4 import "mojo/go/system/impl"
5 import "mojo/public/go/mojo/system"
6 import "testing"
7
8 func Init() {
9 embedder.InitializeMojoEmbedder();
10 }
11
12 func TestGetTimeTicksNow(t *testing.T) {
13 Init();
14 var c system.Core = impl.GetCore();
15 x := c.GetTimeTicksNow();
16 if (x < 10) {
17 t.Error("hi");
qsr 2014/09/22 11:11:25 You might want a better error.
tburkard 2014/09/22 14:23:17 Done.
18 }
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698