2 Copyright (c) 2005-2017 Intel Corporation
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
21 #ifndef __TIME_FRAMEWORK_H__
22 #error time_framework.h must be included
25 #define INJECT_TBB namespace tbb { using namespace ::tbb; namespace internal { using namespace ::tbb::internal; } }
26 #define INJECT_TBB5 namespace tbb { namespace interface5 { using namespace ::tbb::interface5; namespace internal { using namespace ::tbb::interface5::internal; } } }
28 #ifndef INJECT_BOX_NAMES
29 #if defined(__TBB_task_H) || defined(__TBB_concurrent_unordered_internal_H) || defined(__TBB_reader_writer_lock_H) || defined(__TBB__concurrent_unordered_impl_H)
30 #define INJECT_BOX_NAMES INJECT_TBB INJECT_TBB5
32 #define INJECT_BOX_NAMES INJECT_TBB
42 typedef ::BOX1TEST testbox;
51 typedef ::BOX2TEST testbox;
60 typedef ::BOX3TEST testbox;
69 typedef ::BOX4TEST testbox;
78 typedef ::BOX5TEST testbox;
87 typedef ::BOX6TEST testbox;
96 typedef ::BOX7TEST testbox;
105 typedef ::BOX8TEST testbox;
114 typedef ::BOX9TEST testbox;
118 //if harness.h included
119 #if defined(ASSERT) && !HARNESS_NO_PARSE_COMMAND_LINE
121 #define TEST_PREFIX if(Verbose) printf("Processing with %d threads: %ld...\n", threads, long(value));
123 #endif//harness included
125 #ifndef TEST_PROCESSOR_NAME
126 #define TEST_PROCESSOR_NAME test_sandbox
129 class TEST_PROCESSOR_NAME : public TestProcessor {
131 TEST_PROCESSOR_NAME(const char *name, StatisticsCollector::Sorting sort_by = StatisticsCollector::ByAlg)
132 : TestProcessor(name, sort_by) {}
133 void factory(arg_t value, int threads) {
137 process( value, threads,
138 #define RUNBOX(n) run(#n"."BOX##n, new sandbox##n::testbox() )