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

Side by Side Diff: src/trusted/validator_arm/baseline_vs_baseline.cc

Issue 12095039: Add testing of generated (ARM) baseline decoders using hand-written decoders. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef NACL_TRUSTED_BUT_NOT_TCB
8 #error This file is not meant for use in the TCB
9 #endif
10
11 #include "native_client/src/trusted/validator_arm/baseline_vs_baseline.h"
12
13 #include "gtest/gtest.h"
14
15 namespace nacl_arm_test {
16
17 BaselineVsBaselineTester:: BaselineVsBaselineTester(
18 const NamedClassDecoder& gen_baseline,
19 DecoderTester& hand_baseline_tester)
20 : ActualVsBaselineTester(gen_baseline, hand_baseline_tester) {}
21
22 bool BaselineVsBaselineTester::DoApplySanityChecks() {
23 return true;
24 }
25
26 void BaselineVsBaselineTester::CheckDefs() {
27 EXPECT_TRUE(baseline_decoder_.defs(inst_).
28 Equals(actual_decoder_.defs(inst_)));
29 }
30
31 } // namespace nacl_arm_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698