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

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

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 NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_BASELINE_VS_BASELINE_h_
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_BASELINE_VS_BASELINE_h_
9
10 #include "native_client/src/trusted/validator_arm/actual_vs_baseline.h"
11
12 namespace nacl_arm_test {
13
14 // This file defines a tester that compares the "hand-written" baseline
15 // instruction decoders to the "generated" baseline instruction decoders.
16 // It does this by testing for each decoded match, whether the generated
17 // baseline decoders behave the same. If so, there are interchangable.
18 class BaselineVsBaselineTester : public ActualVsBaselineTester {
19 public:
20 BaselineVsBaselineTester(const NamedClassDecoder& gen_baseline,
21 DecoderTester& hand_baseline_tester);
22
23 protected:
24 // We override sanity checks, assuming that they have already been
25 // applied when testing the (hand-coded) baseline decoders against
26 // the baseline decoder.
27 virtual bool DoApplySanityChecks();
28
29 // We override the CheckDefs method to allow us to test that
30 // each baseline implies the other.
31 virtual void CheckDefs();
32 };
33
34 } // namespace nacl_arm_test
35
36 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_BASELINE_VS_BASELINE_h_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698