| 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();
|
| +}
|
|
|