This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/src/test/java/org/mozilla/vrbrowser Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ import org.junit.Assert.*
7
7
import org.junit.Rule
8
8
import org.junit.Test
9
9
import org.junit.runner.RunWith
10
- import org.mozilla.vrbrowser.GleanMetrics.*
10
+ import org.mozilla.vrbrowser.GleanMetrics.Distribution
11
+ import org.mozilla.vrbrowser.GleanMetrics.FirefoxAccount
12
+ import org.mozilla.vrbrowser.GleanMetrics.Tabs
13
+ import org.mozilla.vrbrowser.GleanMetrics.Url
11
14
import org.mozilla.vrbrowser.telemetry.GleanMetricsService
12
15
import org.robolectric.RobolectricTestRunner
13
16
import org.robolectric.annotation.Config
@@ -51,7 +54,9 @@ class GleanMetricsServiceTest {
51
54
assertFalse(Distribution .channelName.testHasValue())
52
55
GleanMetricsService .testSetStartupMetrics()
53
56
assertTrue(Distribution .channelName.testHasValue())
54
- assertEquals(Distribution .channelName.testGetValue(), BuildConfig .FLAVOR_platform )
57
+ assertEquals(Distribution .channelName.testGetValue(),
58
+ if (org.mozilla.vrbrowser.utils.DeviceType .isOculusBuild()) " oculusvr"
59
+ else BuildConfig .FLAVOR_platform )
55
60
}
56
61
57
62
@Test
You can’t perform that action at this time.
0 commit comments