Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: src/trusted/validator_arm/gen/arm32_decode_tests.cc

Issue 9960043: Finish separation of testing from sel_ldr validation. Also, automate (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator_arm/gen/arm32_decode_tests.cc
===================================================================
--- src/trusted/validator_arm/gen/arm32_decode_tests.cc (revision 0)
+++ src/trusted/validator_arm/gen/arm32_decode_tests.cc (revision 0)
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2012 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can
+ * be found in the LICENSE file.
+ */
+
+/*
+ * DO NOT EDIT: GENERATED CODE
+ */
+
+#ifndef NACL_TRUSTED_BUT_NOT_TCB
+#error("This file is not meant for use in the TCB")
+#endif
+
+#include "gtest/gtest.h"
+#include "native_client/src/trusted/validator_arm/inst_classes_testers.h"
+
+namespace nacl_arm_test {
+
+/*
+ * Tester classes for decoder rules
+ */
+
+class Add_Rule_7_A1_P26_Tester
+ : public Binary4RegisterShiftedOpTesterRegsNotPc {
+ public:
+ Add_Rule_7_A1_P26_Tester()
+ : Binary4RegisterShiftedOpTesterRegsNotPc(
+ state_.Add_Rule_7_A1_P26_instance_)
+ {
+ }
+};
+
+/*
+ * Defines a gtest testing harness for testing
+ * Arm32 instructions.
+ */
+class Arm32InstructionTests : public ::testing::Test {
+ protected:
+ Arm32InstructionTests() {}
+};
+
+/*
+ * Test coverage of rule patterns
+ */
+
+TEST_F(Arm32InstructionTests, Add_Rule_7_A1_P26_Tester_Test) {
+ Add_Rule_7_A1_P26_Tester tester;
+ tester.Test("cccc0000100snnnnddddssss0tt1mmmm");
+}
+
+} // namespace
+
+/*
+ * Test driver function.
+ */
+int main(int argc, char *argv[]) {
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}

Powered by Google App Engine
This is Rietveld 408576698