xtd 0.2.0
Loading...
Searching...
No Matches
__google_test_markers.h
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_TUNIT_INTERNAL__)
7#error "Do not include this file: Internal use only"
8#endif
10
11#include <xtd/unused.h>
12
14// The following variables are a hack to ensure that GoogleTestAdapter (Microsoft Visual Studio) will detect the tunit application as a google test application...
15// See https://github.com/csoltenborn/GoogleTestAdapter/blob/master/GoogleTestAdapter/Core/GoogleTestConstants.cs
16inline static const char* __test_body_signature__ = "::TestBody";
17inline static const char* __parameterized_test_marker__ = " # GetParam() = ";
18inline static const char* __typed_test_marker__ = ". # TypeParam = ";
19inline static const char* __google_test_dll_marker__ = "gtest.dll";
20inline static const char* __google_test_dll_marker_debug__ = "gtestd.dll";
21inline static const char* __google_test_main_dll_marker__ = "gtest_main.dll";
22inline static const char* __google_test_main_dll_marker_debug__ = "gtest_maind.dll";
23inline static const char* __google_test_executable_markers__[] = {
24 "This program contains tests written using Google Test. You can use the",
25 "For more information, please read the Google Test documentation at",
26 "Run only the tests whose name matches one of the positive patterns but",
27 "--gtest_list_tests"
28};
29
30inline void __unused_google_test_markers__() {
31 unused_(__test_body_signature__);
32 unused_(__parameterized_test_marker__);
33 unused_(__typed_test_marker__);
34 unused_(__google_test_dll_marker__);
35 unused_(__google_test_dll_marker_debug__);
36 unused_(__google_test_main_dll_marker__);
37 unused_(__google_test_main_dll_marker_debug__);
38 unused_(__google_test_executable_markers__);
39}
#define unused_
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when th...
Definition unused.h:30
Contains unused_ keyword.