From efa2c8f41aa5cd2c27990fd9b57ea0eff06976e7 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 21 Dec 2018 11:00:28 -0500 Subject: Feature/remove app context (#765) * Remove AppContext. Use StdChannels to hold writers, and TestToolUtil to hold test tool specific functionality. * StdChannels -> StdWriters * getStdOut -> getOut, getStdError -> getError --- tools/slang-test/test-context.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/slang-test/test-context.h') diff --git a/tools/slang-test/test-context.h b/tools/slang-test/test-context.h index cfa9837da..b07ca94e6 100644 --- a/tools/slang-test/test-context.h +++ b/tools/slang-test/test-context.h @@ -5,15 +5,18 @@ #include "../../source/core/slang-string-util.h" #include "../../source/core/platform.h" -#include "../../source/core/slang-app-context.h" +#include "../../source/core/slang-std-writers.h" #include "../../source/core/dictionary.h" +#include "../../source/core/slang-test-tool-util.h" #include "options.h" class TestContext { public: - typedef SlangResult(*InnerMainFunc)(Slang::AppContext* appContext, SlangSession* session, int argc, const char*const* argv); + + typedef Slang::TestToolUtil::InnerMainFunc InnerMainFunc; + /// Get the slang session SlangSession* getSession() const { return m_session; } -- cgit v1.2.3