1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
6 * \brief TODO: short file description
12 #include <gtest/gtest.h>
15 bool strContains(const std::string & str, const std::string & substr) {
16 return str.find(substr) != std::string::npos;
18 bool strDoesnotContain(const std::string & str, const std::string & substr) {
19 return !strContains(str, substr);
23 #define ASSERT_STR_CONTAINS(str, substr) ASSERT_PRED2(&strContains, str, substr)
24 #define ASSERT_STR_DOES_NOT_CONTAIN(str, substr) ASSERT_PRED2 (strDoesnotContain, str, substr)
25 #define EXPECT_STR_CONTAINS(str, substr) EXPECT_PRED2(&strContains, str, substr)