forked from 17-12-20-ll/googleplay
-
Notifications
You must be signed in to change notification settings - Fork 2
/
device_test.go
52 lines (48 loc) · 1019 Bytes
/
device_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package googleplay
import (
"os"
"testing"
"time"
)
func TestCheckinArm64(t *testing.T) {
cache, err := os.UserCacheDir()
if err != nil {
t.Fatal(err)
}
device, err := Phone.Checkin(Arm64)
if err != nil {
t.Fatal(err)
}
if err := device.Create(cache, "googleplay/arm64.json"); err != nil {
t.Fatal(err)
}
time.Sleep(Sleep)
}
func TestCheckinArmeabi(t *testing.T) {
cache, err := os.UserCacheDir()
if err != nil {
t.Fatal(err)
}
device, err := Phone.Checkin(Armeabi)
if err != nil {
t.Fatal(err)
}
if err := device.Create(cache, "googleplay/armeabi.json"); err != nil {
t.Fatal(err)
}
time.Sleep(Sleep)
}
func TestCheckinX86(t *testing.T) {
cache, err := os.UserCacheDir()
if err != nil {
t.Fatal(err)
}
device, err := Phone.Checkin(X86)
if err != nil {
t.Fatal(err)
}
if err := device.Create(cache, "googleplay/x86.json"); err != nil {
t.Fatal(err)
}
time.Sleep(Sleep)
}