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

Unified Diff: unittest/BitcodeMunge.h

Issue 1173353003: Unittest fixes. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Optional runTest() ParseError parameter. Created 5 years, 6 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
« no previous file with comments | « no previous file | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittest/BitcodeMunge.h
diff --git a/unittest/BitcodeMunge.h b/unittest/BitcodeMunge.h
index b5f6ea2d28cf44250416ec4b5f879eee60434233..245fbfcff47b74fa39ef4ff795fbd40cd4e6601e 100644
--- a/unittest/BitcodeMunge.h
+++ b/unittest/BitcodeMunge.h
@@ -36,17 +36,15 @@ public:
/// Runs PNaClTranslator to translate bitcode records (with defined
/// record Munges), and puts output into DumpResults. Returns true
/// if parse is successful.
- bool runTest(const uint64_t Munges[], size_t MungeSize);
+ bool runTest(const uint64_t Munges[], size_t MungeSize,
+ bool ParseError = false);
/// Same as above, but without any edits.
- bool runTest() {
+ bool runTest(bool ParseError = false) {
uint64_t NoMunges[] = {0};
- return runTest(NoMunges, 0);
+ return runTest(NoMunges, 0, ParseError);
}
- /// Sets flags back to default assumptions for munging.
- void resetFlags();
-
/// Flags to use to run tests. Use to change default assumptions.
Ice::ClFlags Flags;
« no previous file with comments | « no previous file | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698