| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NACL_TRUSTED_BUT_NOT_TCB |
| 8 #error This file is not meant for use in the TCB |
| 9 #endif |
| 10 |
| 7 /* | 11 /* |
| 8 * Unit tests for the ARM validator | 12 * Unit tests for the ARM validator |
| 9 * | 13 * |
| 10 * These tests use the google-test framework (gtest for short) to exercise the | 14 * These tests use the google-test framework (gtest for short) to exercise the |
| 11 * ARM validator. The tests currently fall into two rough categories: | 15 * ARM validator. The tests currently fall into two rough categories: |
| 12 * 1. Simple method-level tests that exercise the validator's primitive | 16 * 1. Simple method-level tests that exercise the validator's primitive |
| 13 * capabilities, and | 17 * capabilities, and |
| 14 * 2. Instruction pattern tests that run the entire validator. | 18 * 2. Instruction pattern tests that run the entire validator. |
| 15 * | 19 * |
| 16 * All instruction pattern tests use hand-assembled machine code fragments, | 20 * All instruction pattern tests use hand-assembled machine code fragments, |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 return problems; | 703 return problems; |
| 700 } | 704 } |
| 701 | 705 |
| 702 }; // anonymous namespace | 706 }; // anonymous namespace |
| 703 | 707 |
| 704 // Test driver function. | 708 // Test driver function. |
| 705 int main(int argc, char *argv[]) { | 709 int main(int argc, char *argv[]) { |
| 706 testing::InitGoogleTest(&argc, argv); | 710 testing::InitGoogleTest(&argc, argv); |
| 707 return RUN_ALL_TESTS(); | 711 return RUN_ALL_TESTS(); |
| 708 } | 712 } |
| OLD | NEW |