Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
d03d23a6
Commit
d03d23a6
authored
Dec 03, 2021
by
Hossein Ghahramanzadeh
Browse files
Reimplement MatchesFilter with new interfaces.
parent
3fc1ab66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
googletest/src/gtest-internal-inl.h
googletest/src/gtest-internal-inl.h
+4
-0
googletest/src/gtest.cc
googletest/src/gtest.cc
+5
-0
No files found.
googletest/src/gtest-internal-inl.h
View file @
d03d23a6
...
@@ -390,6 +390,10 @@ class GTEST_API_ UnitTestOptions {
...
@@ -390,6 +390,10 @@ class GTEST_API_ UnitTestOptions {
// This function is useful as an __except condition.
// This function is useful as an __except condition.
static
int
GTestShouldProcessSEH
(
DWORD
exception_code
);
static
int
GTestShouldProcessSEH
(
DWORD
exception_code
);
#endif // GTEST_OS_WINDOWS
#endif // GTEST_OS_WINDOWS
// Returns true if "name" matches the ':' separated list of glob-style
// filters in "filter".
static
bool
MatchesFilter
(
const
std
::
string
&
name
,
const
char
*
filter
);
};
};
// Returns the current application's name, removing directory path if that
// Returns the current application's name, removing directory path if that
...
...
googletest/src/gtest.cc
View file @
d03d23a6
...
@@ -797,6 +797,11 @@ class PositiveAndNegativeUnitTestFilter {
...
@@ -797,6 +797,11 @@ class PositiveAndNegativeUnitTestFilter {
};
};
}
// namespace
}
// namespace
bool
UnitTestOptions
::
MatchesFilter
(
const
std
::
string
&
name_str
,
const
char
*
filter
)
{
return
UnitTestFilter
{
filter
}.
MatchesName
(
name_str
);
}
// Returns true if and only if the user-specified filter matches the test
// Returns true if and only if the user-specified filter matches the test
// suite name and the test name.
// suite name and the test name.
bool
UnitTestOptions
::
FilterMatchesTest
(
const
std
::
string
&
test_suite_name
,
bool
UnitTestOptions
::
FilterMatchesTest
(
const
std
::
string
&
test_suite_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment