diff options
Diffstat (limited to 'tests/use_case/vww')
-rw-r--r-- | tests/use_case/vww/VisualWakeWordUCTests.cc | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/tests/use_case/vww/VisualWakeWordUCTests.cc b/tests/use_case/vww/VisualWakeWordUCTests.cc index 16bd5a6..531764b 100644 --- a/tests/use_case/vww/VisualWakeWordUCTests.cc +++ b/tests/use_case/vww/VisualWakeWordUCTests.cc @@ -41,12 +41,7 @@ TEST_CASE("Model info") TEST_CASE("Inference by index") { - hal_platform platform; - platform_timer timer; - - /* Initialise the HAL and platform */ - hal_init(&platform, &timer); - hal_platform_init(&platform); + hal_platform_init(); arm::app::VisualWakeWordModel model; /* model wrapper object */ @@ -55,9 +50,8 @@ TEST_CASE("Inference by index") /* Instantiate application context */ arm::app::ApplicationContext caseContext; - arm::app::Profiler profiler{&platform, "pd"}; + arm::app::Profiler profiler{"pd"}; caseContext.Set<arm::app::Profiler&>("profiler", profiler); - caseContext.Set<hal_platform&>("platform", platform); caseContext.Set<arm::app::Model&>("model", model); caseContext.Set<uint32_t>("imgIndex", 0); arm::app::Classifier classifier; /* classifier wrapper object */ @@ -76,12 +70,8 @@ TEST_CASE("Inference by index") TEST_CASE("Inference run all images") { - hal_platform platform; - platform_timer timer; - /* Initialise the HAL and platform */ - hal_init(&platform, &timer); - hal_platform_init(&platform); + hal_platform_init(); arm::app::VisualWakeWordModel model; /* model wrapper object */ @@ -90,9 +80,8 @@ TEST_CASE("Inference run all images") /* Instantiate application context */ arm::app::ApplicationContext caseContext; - arm::app::Profiler profiler{&platform, "pd"}; + arm::app::Profiler profiler{"pd"}; caseContext.Set<arm::app::Profiler&>("profiler", profiler); - caseContext.Set<hal_platform&>("platform", platform); caseContext.Set<arm::app::Model&>("model", model); caseContext.Set<uint32_t>("imgIndex", 0); arm::app::Classifier classifier; /* classifier wrapper object */ @@ -107,12 +96,8 @@ TEST_CASE("Inference run all images") TEST_CASE("List all images") { - hal_platform platform; - platform_timer timer; - /* Initialise the HAL and platform */ - hal_init(&platform, &timer); - hal_platform_init(&platform); + hal_platform_init(); arm::app::VisualWakeWordModel model; /* model wrapper object */ @@ -122,7 +107,6 @@ TEST_CASE("List all images") /* Instantiate application context */ arm::app::ApplicationContext caseContext; - caseContext.Set<hal_platform&>("platform", platform); caseContext.Set<arm::app::Model&>("model", model); REQUIRE(arm::app::ListFilesHandler(caseContext)); |