Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64acf0ac authored by William Escande's avatar William Escande
Browse files

Mock static initialization order 25

cpp static order initialization is not guarantee.
In order to avoid the mess, we need to have a lazy init schema.
Removing usage of last value

Bug: 265217208
Test: atest --host
Change-Id: Ic7dedc9bca9102dc1a3dc15c79500c66fadf3eb8
parent cf75d775
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec) {
}

enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool b) {
  mock_function_count_map[__func__]++;
  inc_func_call_count(__func__);
  return test::mock::device_esco_parameters::esco_parameters_for_codec(codec);
}
// Mocked functions complete