@@ -25,7 +25,7 @@ import (
25
25
"github.com/google/go-cmp/cmp"
26
26
"github.com/google/go-cmp/cmp/cmpopts"
27
27
"google.golang.org/grpc/internal/backoff"
28
- "google.golang.org/grpc/internal/testutils"
28
+ "google.golang.org/grpc/internal/testutils/stats "
29
29
)
30
30
31
31
var (
@@ -120,7 +120,7 @@ func (s) TestLRU_BasicOperations(t *testing.T) {
120
120
121
121
func (s ) TestDataCache_BasicOperations (t * testing.T ) {
122
122
initCacheEntries ()
123
- dc := newDataCache (5 , nil , & testutils .NoopMetricsRecorder {}, "" )
123
+ dc := newDataCache (5 , nil , & stats .NoopMetricsRecorder {}, "" )
124
124
for i , k := range cacheKeys {
125
125
dc .addEntry (k , cacheEntries [i ])
126
126
}
@@ -134,7 +134,7 @@ func (s) TestDataCache_BasicOperations(t *testing.T) {
134
134
135
135
func (s ) TestDataCache_AddForcesResize (t * testing.T ) {
136
136
initCacheEntries ()
137
- dc := newDataCache (1 , nil , & testutils .NoopMetricsRecorder {}, "" )
137
+ dc := newDataCache (1 , nil , & stats .NoopMetricsRecorder {}, "" )
138
138
139
139
// The first entry in cacheEntries has a minimum expiry time in the future.
140
140
// This entry would stop the resize operation since we do not evict entries
@@ -163,7 +163,7 @@ func (s) TestDataCache_AddForcesResize(t *testing.T) {
163
163
164
164
func (s ) TestDataCache_Resize (t * testing.T ) {
165
165
initCacheEntries ()
166
- dc := newDataCache (5 , nil , & testutils .NoopMetricsRecorder {}, "" )
166
+ dc := newDataCache (5 , nil , & stats .NoopMetricsRecorder {}, "" )
167
167
for i , k := range cacheKeys {
168
168
dc .addEntry (k , cacheEntries [i ])
169
169
}
@@ -194,7 +194,7 @@ func (s) TestDataCache_Resize(t *testing.T) {
194
194
195
195
func (s ) TestDataCache_EvictExpiredEntries (t * testing.T ) {
196
196
initCacheEntries ()
197
- dc := newDataCache (5 , nil , & testutils .NoopMetricsRecorder {}, "" )
197
+ dc := newDataCache (5 , nil , & stats .NoopMetricsRecorder {}, "" )
198
198
for i , k := range cacheKeys {
199
199
dc .addEntry (k , cacheEntries [i ])
200
200
}
@@ -221,7 +221,7 @@ func (s) TestDataCache_ResetBackoffState(t *testing.T) {
221
221
}
222
222
223
223
initCacheEntries ()
224
- dc := newDataCache (5 , nil , & testutils .NoopMetricsRecorder {}, "" )
224
+ dc := newDataCache (5 , nil , & stats .NoopMetricsRecorder {}, "" )
225
225
for i , k := range cacheKeys {
226
226
dc .addEntry (k , cacheEntries [i ])
227
227
}
@@ -251,7 +251,7 @@ func (s) TestDataCache_Metrics(t *testing.T) {
251
251
{size : 4 },
252
252
{size : 5 },
253
253
}
254
- tmr := testutils .NewTestMetricsRecorder ()
254
+ tmr := stats .NewTestMetricsRecorder ()
255
255
dc := newDataCache (50 , nil , tmr , "" )
256
256
257
257
dc .updateRLSServerTarget ("rls-server-target" )
0 commit comments