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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file.
5 */
6
7 /*
8 * DO NOT EDIT: GENERATED CODE
9 */
10
11 #ifndef NACL_TRUSTED_BUT_NOT_TCB
12 #error("This file is not meant for use in the TCB")
13 #endif
14
15 #include "gtest/gtest.h"
16 #include "native_client/src/trusted/validator_arm/inst_classes_testers.h"
17
18 namespace nacl_arm_test {
19
20 /*
21 * Tester classes for decoder rules
22 */
23
24 class Add_Rule_7_A1_P26_Tester
25 : public Binary4RegisterShiftedOpTesterRegsNotPc {
26 public:
27 Add_Rule_7_A1_P26_Tester()
28 : Binary4RegisterShiftedOpTesterRegsNotPc(
29 state_.Add_Rule_7_A1_P26_instance_)
30 {
31 }
32 };
33
34 /*
35 * Defines a gtest testing harness for testing
36 * Arm32 instructions.
37 */
38 class Arm32InstructionTests : public ::testing::Test {
39 protected:
40 Arm32InstructionTests() {}
41 };
42
43 /*
44 * Test coverage of rule patterns
45 */
46
47 TEST_F(Arm32InstructionTests, Add_Rule_7_A1_P26_Tester_Test) {
48 Add_Rule_7_A1_P26_Tester tester;
49 tester.Test("cccc0000100snnnnddddssss0tt1mmmm");
50 }
51
52 } // namespace
53
54 /*
55 * Test driver function.
56 */
57 int main(int argc, char *argv[]) {
58 testing::InitGoogleTest(&argc, argv);
59 return RUN_ALL_TESTS();
60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698