Commit d40c2afe authored by Michael Droettboom's avatar Michael Droettboom Committed by Sebastian Kaspari
Browse files

1540844: Rename metrics package -> private

parent 65a6248d
......@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.service.glean.metrics
package mozilla.components.service.glean.private
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.ObsoleteCoroutinesApi
......
......@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.service.glean.metrics
package mozilla.components.service.glean.private
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.ObsoleteCoroutinesApi
......
......@@ -10,10 +10,10 @@ import androidx.test.core.app.ApplicationProvider
import androidx.work.testing.WorkManagerTestInitHelper
import mozilla.components.service.glean.getContextWithMockedInfo
import mozilla.components.service.glean.Glean
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.resetGlean
import mozilla.components.service.glean.metrics.StringMetricType
import mozilla.components.service.glean.metrics.TimeUnit
import mozilla.components.service.glean.private.StringMetricType
import mozilla.components.service.glean.private.TimeUnit
import mozilla.components.service.glean.checkPingSchema
import mozilla.components.service.glean.triggerWorkManager
import mozilla.components.service.glean.config.Configuration
......
......@@ -6,8 +6,8 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.BooleanMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.BooleanMetricType
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Before
......
......@@ -7,8 +7,8 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.CounterMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.CounterMetricType
import mozilla.components.service.glean.error.ErrorRecording.ErrorType
import mozilla.components.service.glean.error.ErrorRecording.testGetNumRecordedErrors
import mozilla.components.service.glean.resetGlean
......
......@@ -6,9 +6,9 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.DatetimeMetricType
import mozilla.components.service.glean.metrics.TimeUnit
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.DatetimeMetricType
import mozilla.components.service.glean.private.TimeUnit
import mozilla.components.service.glean.resetGlean
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
......
......@@ -9,11 +9,11 @@ import androidx.work.testing.WorkManagerTestInitHelper
import mozilla.components.service.glean.checkPingSchema
import mozilla.components.service.glean.error.ErrorRecording.ErrorType
import mozilla.components.service.glean.error.ErrorRecording.testGetNumRecordedErrors
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.EventMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.EventMetricType
import mozilla.components.service.glean.getContextWithMockedInfo
import mozilla.components.service.glean.Glean
import mozilla.components.service.glean.metrics.NoExtraKeys
import mozilla.components.service.glean.private.NoExtraKeys
import mozilla.components.service.glean.resetGlean
import mozilla.components.service.glean.triggerWorkManager
import okhttp3.mockwebserver.MockResponse
......
......@@ -7,8 +7,8 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.CommonMetricData
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.private.CommonMetricData
import mozilla.components.service.glean.private.Lifetime
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNull
......
......@@ -5,7 +5,7 @@
package mozilla.components.service.glean.storages
import android.content.SharedPreferences
import mozilla.components.service.glean.metrics.CommonMetricData
import mozilla.components.service.glean.private.CommonMetricData
import mozilla.components.support.base.log.logger.Logger
internal class MockGenericStorageEngine(
......
......@@ -9,8 +9,8 @@ import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.error.ErrorRecording.ErrorType
import mozilla.components.service.glean.error.ErrorRecording.testGetNumRecordedErrors
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.StringListMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.StringListMetricType
import mozilla.components.service.glean.resetGlean
import org.json.JSONArray
import org.json.JSONObject
......
......@@ -8,8 +8,8 @@ import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.error.ErrorRecording.ErrorType
import mozilla.components.service.glean.error.ErrorRecording.testGetNumRecordedErrors
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.StringMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.StringMetricType
import mozilla.components.service.glean.resetGlean
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
......
......@@ -6,9 +6,9 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.CommonMetricData
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.TimeUnit
import mozilla.components.service.glean.private.CommonMetricData
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.TimeUnit
import org.junit.Before
import org.junit.Test
......
......@@ -8,9 +8,9 @@ import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import kotlinx.coroutines.runBlocking
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.TimeUnit
import mozilla.components.service.glean.metrics.TimingDistributionMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.TimeUnit
import mozilla.components.service.glean.private.TimingDistributionMetricType
import mozilla.components.service.glean.error.ErrorRecording
import mozilla.components.service.glean.resetGlean
import org.junit.Assert.assertFalse
......
......@@ -6,8 +6,8 @@ package mozilla.components.service.glean.storages
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import mozilla.components.service.glean.metrics.Lifetime
import mozilla.components.service.glean.metrics.UuidMetricType
import mozilla.components.service.glean.private.Lifetime
import mozilla.components.service.glean.private.UuidMetricType
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment