Home
last modified time | relevance | path

Searched refs:ScopedContext (Results 1 – 25 of 36) sorted by relevance

12

/external/deqp-deps/SPIRV-Tools/test/
Dtest_fixture.h26 struct ScopedContext { struct
27 ScopedContext(spv_target_env env = SPV_ENV_UNIVERSAL_1_0)
29 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
65 spvTextToBinary(ScopedContext(env).context, txt.c_str(), txt.size(),
83 spvTextToBinary(ScopedContext(env).context, txt.c_str(),
97 ScopedContext context(env);
134 spvBinaryToText(ScopedContext().context, code.data(), code.size(), in EncodeSuccessfullyDecodeFailed()
Dassembly_format_test.cpp20 using spvtest::ScopedContext;
26 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dbinary_destroy_test.cpp22 using spvtest::ScopedContext;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dbinary_parse_test.cpp43 using ::spvtest::ScopedContext;
214 spvBinaryParse(ScopedContext().context, &client_, in Parse()
250 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
261 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
380 EXPECT_EQ(SPV_SUCCESS, spvBinaryParse(ScopedContext().context, &client_, in TEST_F()
391 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
556 spvBinaryParse(ScopedContext().context, nullptr, GetParam().words, in TEST_P()
592 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
830 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
Dpreserve_numeric_ids_test.cpp26 using spvtest::ScopedContext;
34 ScopedContext ctx(env); in ToBinaryAndBack()
Dtext_to_binary_test.cpp34 using spvtest::ScopedContext;
114 spvTextToBinary(ScopedContext().context, nullptr, 0, &binary, in TEST_F()
124 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dimmediate_int_test.cpp29 using spvtest::ScopedContext;
38 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
48 EXPECT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dname_mapper_test.cpp26 using spvtest::ScopedContext;
47 ScopedContext context(SPV_ENV_UNIVERSAL_1_1); in TEST_P()
Dbinary_to_text_test.cpp29 using spvtest::ScopedContext;
493 EXPECT_THAT(spvBinaryToText(ScopedContext().context, words.data(), in TEST_F()
524 EXPECT_THAT(spvBinaryToText(ScopedContext().context, words.data(), in TEST_P()
/external/swiftshader/third_party/SPIRV-Tools/test/
Dtest_fixture.h26 struct ScopedContext { struct
27 ScopedContext(spv_target_env env = SPV_ENV_UNIVERSAL_1_0)
29 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
67 spvTextToBinary(ScopedContext(env).context, txt.c_str(), txt.size(),
87 spvTextToBinary(ScopedContext(env).context, txt.c_str(),
102 ScopedContext context(env);
141 spvBinaryToText(ScopedContext().context, code.data(), code.size(), in EncodeSuccessfullyDecodeFailed()
Dassembly_format_test.cpp20 using spvtest::ScopedContext;
26 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dbinary_destroy_test.cpp22 using spvtest::ScopedContext;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dbinary_parse_test.cpp43 using ::spvtest::ScopedContext;
216 spvBinaryParse(ScopedContext().context, &client_, in Parse()
252 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
263 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
382 EXPECT_EQ(SPV_SUCCESS, spvBinaryParse(ScopedContext().context, &client_, in TEST_F()
393 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
558 spvBinaryParse(ScopedContext().context, nullptr, GetParam().words, in TEST_P()
594 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
832 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
Dpreserve_numeric_ids_test.cpp26 using spvtest::ScopedContext;
34 ScopedContext ctx(env); in ToBinaryAndBack()
Dimmediate_int_test.cpp29 using spvtest::ScopedContext;
38 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
48 EXPECT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dtext_to_binary_test.cpp34 using spvtest::ScopedContext;
114 spvTextToBinary(ScopedContext().context, nullptr, 0, &binary, in TEST_F()
124 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dname_mapper_test.cpp26 using spvtest::ScopedContext;
47 ScopedContext context(SPV_ENV_UNIVERSAL_1_1); in TEST_P()
Dbinary_to_text_test.cpp29 using spvtest::ScopedContext;
500 EXPECT_THAT(spvBinaryToText(ScopedContext().context, words.data(), in TEST_F()
531 EXPECT_THAT(spvBinaryToText(ScopedContext().context, words.data(), in TEST_P()
/external/libchrome/base/test/
Dtest_mock_time_task_runner.h105 class ScopedContext {
111 explicit ScopedContext(scoped_refptr<TestMockTimeTaskRunner> scope);
112 ~ScopedContext();
116 DISALLOW_COPY_AND_ASSIGN(ScopedContext);
Dtest_mock_time_task_runner.cc185 TestMockTimeTaskRunner::ScopedContext::ScopedContext( in ScopedContext() function in base::TestMockTimeTaskRunner::ScopedContext
191 TestMockTimeTaskRunner::ScopedContext::~ScopedContext() = default;
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_fixtures.h96 spvTextToBinary(ScopedContext(env).context, code.c_str(), in CompileSuccessfully()
113 return spvValidateWithOptions(ScopedContext(env).context, options_, in ValidateInstructions()
121 ScopedContext(env).context, options_, get_const_binary()->code, in ValidateAndRetrieveValidationState()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_fixtures.h109 spvTextToBinary(ScopedContext(env).context, code.c_str(), in CompileSuccessfully()
128 return spvValidateWithOptions(ScopedContext(env).context, options_, in ValidateInstructions()
137 ScopedContext(env).context, options_, get_const_binary()->code, in ValidateAndRetrieveValidationState()
/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv.cpp44 struct ScopedContext { struct
45 ScopedContext(spv_target_env env) : context(spvContextCreate(env)) {} in ScopedContext() argument
46 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
220 ScopedContext ctx(kSpvEnv); in main()
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv.cpp44 struct ScopedContext { struct
45 ScopedContext(spv_target_env env) : context(spvContextCreate(env)) {} in ScopedContext() argument
46 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
220 ScopedContext ctx(kSpvEnv); in main()
/external/v8/src/tracing/
Dtrace-event.h272 struct INTERNAL_TRACE_EVENT_UID(ScopedContext) { \
274 INTERNAL_TRACE_EVENT_UID(ScopedContext)(uint64_t cid) : cid_(cid) { \
277 ~INTERNAL_TRACE_EVENT_UID(ScopedContext)() { \
283 INTERNAL_TRACE_EVENT_UID(ScopedContext) \
284 (const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \
285 void operator=(const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \
288 INTERNAL_TRACE_EVENT_UID(ScopedContext) \

12