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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator_arm/baseline_vs_baseline.cc
===================================================================
--- src/trusted/validator_arm/baseline_vs_baseline.cc (revision 0)
+++ src/trusted/validator_arm/baseline_vs_baseline.cc (revision 0)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NACL_TRUSTED_BUT_NOT_TCB
+#error This file is not meant for use in the TCB
+#endif
+
+#include "native_client/src/trusted/validator_arm/baseline_vs_baseline.h"
+
+#include "gtest/gtest.h"
+
+namespace nacl_arm_test {
+
+BaselineVsBaselineTester:: BaselineVsBaselineTester(
+ const NamedClassDecoder& gen_baseline,
+ DecoderTester& hand_baseline_tester)
+ : ActualVsBaselineTester(gen_baseline, hand_baseline_tester) {}
+
+bool BaselineVsBaselineTester::DoApplySanityChecks() {
+ return true;
+}
+
+void BaselineVsBaselineTester::CheckDefs() {
+ EXPECT_TRUE(baseline_decoder_.defs(inst_).
+ Equals(actual_decoder_.defs(inst_)));
+}
+
+} // namespace nacl_arm_test
Property changes on: src/trusted/validator_arm/baseline_vs_baseline.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698