summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestGenerated.cpp
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2017-09-11 18:33:20 -0700
committerMiao Wang <miaowang@google.com>2017-09-13 18:05:15 -0700
commit7612f29b31f97f3b15769264131566b36dea9a25 (patch)
tree542c88c1026228db2684da5f05301d4e6c2fe09d /nn/runtime/test/TestGenerated.cpp
parent70a767296bb8c1cd6b73f7ac4360905cad5fe56d (diff)
downloadml-7612f29b31f97f3b15769264131566b36dea9a25.tar.gz
Remove the initialization and shutdown APIs.
Initialize the list of drivers as needed rather than requiring an API call. This initialization will be triggered when compiling the first model. Bug: 63905942 Test: Compiled and ran the unit tests. Change-Id: I1893a9f9d96d9d241916de3a7dd3cb7a54e33b06
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r--nn/runtime/test/TestGenerated.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp
index ccbaf66e7..47183e91c 100644
--- a/nn/runtime/test/TestGenerated.cpp
+++ b/nn/runtime/test/TestGenerated.cpp
@@ -19,6 +19,7 @@
#include "NeuralNetworksWrapper.h"
#include "TestHarness.h"
+//#include <android-base/logging.h>
#include <gtest/gtest.h>
#include <cassert>
#include <cmath>
@@ -167,11 +168,9 @@ void Execute(std::function<void(Model*)> create_model,
class GeneratedTests : public ::testing::Test {
protected:
virtual void SetUp() {
- ASSERT_EQ(android::nn::wrapper::Initialize(),
- android::nn::wrapper::Result::NO_ERROR);
+ // For detailed logs, uncomment this line:
+ // SetMinimumLogSeverity(android::base::VERBOSE);
}
-
- virtual void TearDown() { android::nn::wrapper::Shutdown(); }
};
// Testcases generated from runtime/test/specs/*.mod.py