File tree Expand file tree Collapse file tree 3 files changed +0
-41
lines changed
connectivity/network/netstack3/src/bindings
developer/ffx/daemon/server/src
sys/pkg/bin/system-update-checker/src Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -1398,17 +1398,6 @@ mod tests {
1398
1398
}
1399
1399
}
1400
1400
1401
- struct EmptyFakeConversionContext ;
1402
- impl ConversionContext for EmptyFakeConversionContext {
1403
- fn get_core_id ( & self , _binding_id : BindingId ) -> Option < DeviceId < BindingsCtx > > {
1404
- None
1405
- }
1406
-
1407
- fn get_binding_id ( & self , core_id : DeviceId < BindingsCtx > ) -> BindingId {
1408
- core_id. bindings_id ( ) . id
1409
- }
1410
- }
1411
-
1412
1401
fn create_addr_v4 ( bytes : [ u8 ; 4 ] ) -> ( IpAddr , fidl_net:: IpAddress ) {
1413
1402
let core = IpAddr :: V4 ( Ipv4Addr :: from ( bytes) ) ;
1414
1403
let fidl = fidl_net:: IpAddress :: Ipv4 ( fidl_net:: Ipv4Address { addr : bytes } ) ;
Original file line number Diff line number Diff line change @@ -973,19 +973,6 @@ mod test {
973
973
assert ! ( result. is_err( ) ) ;
974
974
}
975
975
976
- struct FakeConfigReader {
977
- query_expected : String ,
978
- value : String ,
979
- }
980
-
981
- #[ async_trait( ?Send ) ]
982
- impl ConfigReader for FakeConfigReader {
983
- async fn get ( & self , q : & str ) -> Result < Option < String > > {
984
- assert_eq ! ( q, self . query_expected) ;
985
- Ok ( Some ( self . value . clone ( ) ) )
986
- }
987
- }
988
-
989
976
#[ fuchsia_async:: run_singlethreaded( test) ]
990
977
async fn test_get_target_empty ( ) {
991
978
let tempdir = tempfile:: tempdir ( ) . expect ( "Creating tempdir" ) ;
Original file line number Diff line number Diff line change @@ -199,23 +199,6 @@ mod test_apply_system_update_impl {
199
199
200
200
const TEST_DEFAULT_UPDATE_URL : & str = "fuchsia-pkg://fuchsia.test/update" ;
201
201
202
- struct DoNothingUpdateInstaller ;
203
- impl UpdateInstaller for DoNothingUpdateInstaller {
204
- type UpdateAttempt =
205
- futures:: stream:: Once < future:: Ready < Result < State , MonitorUpdateAttemptError > > > ;
206
-
207
- fn start_update (
208
- & mut self ,
209
- _update_url : AbsolutePackageUrl ,
210
- _options : Options ,
211
- _reboot_controller_server_end : Option < ServerEnd < RebootControllerMarker > > ,
212
- ) -> BoxFuture < ' _ , Result < Self :: UpdateAttempt , UpdateAttemptError > > {
213
- let info = UpdateInfo :: builder ( ) . download_size ( 0 ) . build ( ) ;
214
- let state = State :: Complete ( UpdateInfoAndProgress :: done ( info) ) ;
215
- future:: ok ( futures:: stream:: once ( future:: ok ( state) ) ) . boxed ( )
216
- }
217
- }
218
-
219
202
struct WasCalledUpdateInstaller {
220
203
was_called : bool ,
221
204
}
You can’t perform that action at this time.
0 commit comments