@@ -6,7 +6,7 @@ void main() {
66 final proxy = SentryProxy (
77 host: 'localhost' ,
88 port: 8080 ,
9- type: ProxyType .http,
9+ type: SentryProxyType .http,
1010 user: 'admin' ,
1111 pass: '0000' ,
1212 );
@@ -21,40 +21,40 @@ void main() {
2121
2222 group ('toPacString' , () {
2323 test ('returns "DIRECT" for ProxyType.direct' , () {
24- SentryProxy proxy = SentryProxy (type: ProxyType .direct);
24+ SentryProxy proxy = SentryProxy (type: SentryProxyType .direct);
2525 expect (proxy.toPacString (), equals ('DIRECT' ));
2626 });
2727
2828 test ('returns "PROXY host:port" for ProxyType.http with host and port' , () {
2929 SentryProxy proxy =
30- SentryProxy (type: ProxyType .http, host: 'localhost' , port: 8080 );
30+ SentryProxy (type: SentryProxyType .http, host: 'localhost' , port: 8080 );
3131 expect (proxy.toPacString (), equals ('PROXY localhost:8080' ));
3232 });
3333
3434 test ('returns "PROXY host" for ProxyType.http with host only' , () {
35- SentryProxy proxy = SentryProxy (type: ProxyType .http, host: 'localhost' );
35+ SentryProxy proxy = SentryProxy (type: SentryProxyType .http, host: 'localhost' );
3636 expect (proxy.toPacString (), equals ('PROXY localhost' ));
3737 });
3838
3939 test ('returns "SOCKS host:port" for ProxyType.socks with host and port' ,
4040 () {
4141 SentryProxy proxy =
42- SentryProxy (type: ProxyType .socks, host: 'localhost' , port: 8080 );
42+ SentryProxy (type: SentryProxyType .socks, host: 'localhost' , port: 8080 );
4343 expect (proxy.toPacString (), equals ('SOCKS localhost:8080' ));
4444 });
4545
4646 test ('returns "SOCKS host" for ProxyType.socks with host only' , () {
47- SentryProxy proxy = SentryProxy (type: ProxyType .socks, host: 'localhost' );
47+ SentryProxy proxy = SentryProxy (type: SentryProxyType .socks, host: 'localhost' );
4848 expect (proxy.toPacString (), equals ('SOCKS localhost' ));
4949 });
5050
5151 test ('falls back to "DIRECT" if http is missing host' , () {
52- SentryProxy proxy = SentryProxy (type: ProxyType .http);
52+ SentryProxy proxy = SentryProxy (type: SentryProxyType .http);
5353 expect (proxy.toPacString (), equals ('DIRECT' ));
5454 });
5555
5656 test ('falls back to "DIRECT" if socks is missing host' , () {
57- SentryProxy proxy = SentryProxy (type: ProxyType .socks);
57+ SentryProxy proxy = SentryProxy (type: SentryProxyType .socks);
5858 expect (proxy.toPacString (), equals ('DIRECT' ));
5959 });
6060 });
@@ -85,14 +85,14 @@ void main() {
8585 final copy = data.copyWith (
8686 host: 'localhost-2' ,
8787 port: 9001 ,
88- type: ProxyType .socks,
88+ type: SentryProxyType .socks,
8989 user: 'user' ,
9090 pass: '1234' ,
9191 );
9292
9393 expect ('localhost-2' , copy.host);
9494 expect (9001 , copy.port);
95- expect (ProxyType .socks, copy.type);
95+ expect (SentryProxyType .socks, copy.type);
9696 expect ('user' , copy.user);
9797 expect ('1234' , copy.pass);
9898 });
0 commit comments