55
66import { NullLogService } from 'vs/platform/log/common/log' ;
77import { TestEnvironmentService } from 'vs/workbench/test/workbenchTestServices' ;
8- import { NextStorageServiceImpl } from 'vs/platform/storage2/node/nextStorageServiceImpl ' ;
8+ import { NextStorageService } from 'vs/platform/storage2/node/nextStorageService ' ;
99import { generateUuid } from 'vs/base/common/uuid' ;
1010import { join } from 'path' ;
1111import { tmpdir } from 'os' ;
@@ -33,7 +33,7 @@ suite('Workbench NextStorageService', () => {
3333 const storageDir = uniqueStorageDir ( ) ;
3434 await mkdirp ( storageDir ) ;
3535
36- const storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
36+ const storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
3737
3838 await storageService . init ( ) ;
3939
@@ -90,7 +90,7 @@ suite('Workbench NextStorageService', () => {
9090 const storageDir = uniqueStorageDir ( ) ;
9191 await mkdirp ( storageDir ) ;
9292
93- let storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
93+ let storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
9494 await storageService . init ( ) ;
9595
9696 const set1Promise = storageService . set ( 'foo' , 'bar' ) ;
@@ -106,15 +106,15 @@ suite('Workbench NextStorageService', () => {
106106
107107 equal ( setPromiseResolved , true ) ;
108108
109- storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
109+ storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
110110 await storageService . init ( ) ;
111111
112112 equal ( storageService . get ( 'foo' ) , 'bar' ) ;
113113 equal ( storageService . get ( 'bar' ) , 'foo' ) ;
114114
115115 await storageService . close ( ) ;
116116
117- storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
117+ storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
118118 await storageService . init ( ) ;
119119
120120 const delete1Promise = storageService . delete ( 'foo' ) ;
@@ -130,7 +130,7 @@ suite('Workbench NextStorageService', () => {
130130
131131 equal ( deletePromiseResolved , true ) ;
132132
133- storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
133+ storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
134134 await storageService . init ( ) ;
135135
136136 ok ( ! storageService . get ( 'foo' ) ) ;
@@ -144,7 +144,7 @@ suite('Workbench NextStorageService', () => {
144144 const storageDir = uniqueStorageDir ( ) ;
145145 await mkdirp ( storageDir ) ;
146146
147- let storageService = new NextStorageServiceImpl ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
147+ let storageService = new NextStorageService ( join ( storageDir , 'storage.db' ) , new NullLogService ( ) , TestEnvironmentService ) ;
148148 await storageService . init ( ) ;
149149
150150 const set1Promise = storageService . set ( 'foo' , 'bar1' ) ;
0 commit comments