aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/model_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-25 17:32:12 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-25 17:35:41 -0800
commit32a6eb80dcde4d107f21e41097fddd8341a725b9 (patch)
tree84211d7d2ae3beb9a2faf3f27029a28d83b1812c /tensorflow/contrib/lite/model_test.cc
parent8220c228ab066d23ddf506a58bb08b1694239a34 (diff)
Move flatbuffer verifier to a separate lib
PiperOrigin-RevId: 183318384
Diffstat (limited to 'tensorflow/contrib/lite/model_test.cc')
-rw-r--r--tensorflow/contrib/lite/model_test.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/tensorflow/contrib/lite/model_test.cc b/tensorflow/contrib/lite/model_test.cc
index 5330c8f594..66f22fd66a 100644
--- a/tensorflow/contrib/lite/model_test.cc
+++ b/tensorflow/contrib/lite/model_test.cc
@@ -20,7 +20,6 @@ limitations under the License.
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <string>
#include "tensorflow/contrib/lite/model.h"
@@ -247,14 +246,6 @@ TEST(BasicFlatBufferModel, TestNullErrorReporter) {
ASSERT_NE(interpreter->Invoke(), kTfLiteOk);
}
-// Test what happens if we cannot bind any of the ops.
-TEST(BasicFlatBufferModel, TestBuildModelFromCorruptedData) {
- std::string corrupted_data = "123";
- auto model = FlatBufferModel::BuildFromBuffer(corrupted_data.c_str(),
- corrupted_data.length());
- ASSERT_FALSE(model);
-}
-
// Test that loading model directly from a Model flatbuffer works.
TEST(BasicFlatBufferModel, TestBuildFromModel) {
TestErrorReporter reporter;