| OLD | NEW |
| (Empty) | |
| 1 |
| 2 |
| 3 /* |
| 4 * Copyright 2012 The Native Client Authors. All rights reserved. |
| 5 * Use of this source code is governed by a BSD-style license that can |
| 6 * be found in the LICENSE file. |
| 7 */ |
| 8 |
| 9 // DO NOT EDIT: GENERATED CODE |
| 10 |
| 11 |
| 12 #ifndef NACL_TRUSTED_BUT_NOT_TCB |
| 13 #error This file is not meant for use in the TCB |
| 14 #endif |
| 15 |
| 16 |
| 17 |
| 18 #include "gtest/gtest.h" |
| 19 #include "native_client/src/trusted/validator_arm/inst_classes_testers.h" |
| 20 |
| 21 namespace nacl_arm_test { |
| 22 |
| 23 |
| 24 class Add_Rule_7_A1_P26Binary4RegisterShiftedOpTesterRegsNotPc |
| 25 : public Binary4RegisterShiftedOpTesterRegsNotPc { |
| 26 public: |
| 27 Add_Rule_7_A1_P26Binary4RegisterShiftedOpTesterRegsNotPc() |
| 28 : Binary4RegisterShiftedOpTesterRegsNotPc( |
| 29 state_.Add_Rule_7_A1_P26Binary4RegisterShiftedOp_instance_) |
| 30 {} |
| 31 }; |
| 32 |
| 33 class Rsb_Rule_144_A1_P288Binary4RegisterShiftedOpTesterRegsNotPc |
| 34 : public Binary4RegisterShiftedOpTesterRegsNotPc { |
| 35 public: |
| 36 Rsb_Rule_144_A1_P288Binary4RegisterShiftedOpTesterRegsNotPc() |
| 37 : Binary4RegisterShiftedOpTesterRegsNotPc( |
| 38 state_.Rsb_Rule_144_A1_P288Binary4RegisterShiftedOp_instance_) |
| 39 {} |
| 40 }; |
| 41 |
| 42 // Defines a gtest testing harness for tests. |
| 43 class Arm32DecoderStateTests : public ::testing::Test { |
| 44 protected: |
| 45 Arm32DecoderStateTests() {} |
| 46 }; |
| 47 |
| 48 TEST_F(Arm32DecoderStateTests, |
| 49 Add_Rule_7_A1_P26Binary4RegisterShiftedOpRegsNotPc_cccc0000100snnnnddddss
ss0tt1mmmm_Test) { |
| 50 Add_Rule_7_A1_P26Binary4RegisterShiftedOpTesterRegsNotPc tester; |
| 51 tester.Test("cccc0000100snnnnddddssss0tt1mmmm"); |
| 52 } |
| 53 |
| 54 TEST_F(Arm32DecoderStateTests, |
| 55 Rsb_Rule_144_A1_P288Binary4RegisterShiftedOpRegsNotPc_cccc0000011snnnnddd
dssss0tt1mmmm_Test) { |
| 56 Rsb_Rule_144_A1_P288Binary4RegisterShiftedOpTesterRegsNotPc tester; |
| 57 tester.Test("cccc0000011snnnnddddssss0tt1mmmm"); |
| 58 } |
| 59 |
| 60 } // namespace nacl_arm_test |
| 61 |
| 62 int main(int argc, char* argv[]) { |
| 63 testing::InitGoogleTest(&argc, argv); |
| 64 return RUN_ALL_TESTS(); |
| 65 } |
| OLD | NEW |