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
81c0b876
Unverified
Commit
81c0b876
authored
Sep 23, 2018
by
Gennadiy Civil
Committed by
GitHub
Sep 23, 2018
Browse files
Formatting
parent
65964711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
101 deletions
+101
-101
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+101
-101
No files found.
googletest/test/gtest_unittest.cc
View file @
81c0b876
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
// Tests for Google Test itself. This verifies that the basic constructs of
// Tests for Google Test itself. This verifies that the basic constructs of
// Google Test work.
// Google Test work.
#include "
third_party/googletest/googletest/include/
gtest/gtest.h"
#include "gtest/gtest.h"
// Verifies that the command line flag variables can be accessed in
// Verifies that the command line flag variables can be accessed in
// code once "gtest.h" has been #included.
// code once "gtest.h" has been #included.
...
@@ -65,8 +65,8 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
...
@@ -65,8 +65,8 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
#include <ostream>
#include <ostream>
#include <unordered_set>
#include <unordered_set>
#include "
third_party/googletest/googletest/include/
gtest/gtest-spi.h"
#include "gtest/gtest-spi.h"
#include "
third_party/googletest/googletest/
src/gtest-internal-inl.h"
#include "src/gtest-internal-inl.h"
namespace
testing
{
namespace
testing
{
namespace
internal
{
namespace
internal
{
...
@@ -5535,7 +5535,7 @@ struct Flags {
...
@@ -5535,7 +5535,7 @@ struct Flags {
// Factory methods.
// Factory methods.
// Creates a Flags struct where the g
uni
t_also_run_disabled_tests flag has
// Creates a Flags struct where the g
tes
t_also_run_disabled_tests flag has
// the given value.
// the given value.
static
Flags
AlsoRunDisabledTests
(
bool
also_run_disabled_tests
)
{
static
Flags
AlsoRunDisabledTests
(
bool
also_run_disabled_tests
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5543,7 +5543,7 @@ struct Flags {
...
@@ -5543,7 +5543,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_break_on_failure flag has
// Creates a Flags struct where the g
tes
t_break_on_failure flag has
// the given value.
// the given value.
static
Flags
BreakOnFailure
(
bool
break_on_failure
)
{
static
Flags
BreakOnFailure
(
bool
break_on_failure
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5551,7 +5551,7 @@ struct Flags {
...
@@ -5551,7 +5551,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_catch_exceptions flag has
// Creates a Flags struct where the g
tes
t_catch_exceptions flag has
// the given value.
// the given value.
static
Flags
CatchExceptions
(
bool
catch_exceptions
)
{
static
Flags
CatchExceptions
(
bool
catch_exceptions
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5559,7 +5559,7 @@ struct Flags {
...
@@ -5559,7 +5559,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_death_test_use_fork flag has
// Creates a Flags struct where the g
tes
t_death_test_use_fork flag has
// the given value.
// the given value.
static
Flags
DeathTestUseFork
(
bool
death_test_use_fork
)
{
static
Flags
DeathTestUseFork
(
bool
death_test_use_fork
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5567,7 +5567,7 @@ struct Flags {
...
@@ -5567,7 +5567,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_filter flag has the given
// Creates a Flags struct where the g
tes
t_filter flag has the given
// value.
// value.
static
Flags
Filter
(
const
char
*
filter
)
{
static
Flags
Filter
(
const
char
*
filter
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5575,7 +5575,7 @@ struct Flags {
...
@@ -5575,7 +5575,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_list_tests flag has the
// Creates a Flags struct where the g
tes
t_list_tests flag has the
// given value.
// given value.
static
Flags
ListTests
(
bool
list_tests
)
{
static
Flags
ListTests
(
bool
list_tests
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5583,7 +5583,7 @@ struct Flags {
...
@@ -5583,7 +5583,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_output flag has the given
// Creates a Flags struct where the g
tes
t_output flag has the given
// value.
// value.
static
Flags
Output
(
const
char
*
output
)
{
static
Flags
Output
(
const
char
*
output
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5591,7 +5591,7 @@ struct Flags {
...
@@ -5591,7 +5591,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_print_time flag has the given
// Creates a Flags struct where the g
tes
t_print_time flag has the given
// value.
// value.
static
Flags
PrintTime
(
bool
print_time
)
{
static
Flags
PrintTime
(
bool
print_time
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5599,7 +5599,7 @@ struct Flags {
...
@@ -5599,7 +5599,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_random_seed flag has the given
// Creates a Flags struct where the g
tes
t_random_seed flag has the given
// value.
// value.
static
Flags
RandomSeed
(
Int32
random_seed
)
{
static
Flags
RandomSeed
(
Int32
random_seed
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5607,7 +5607,7 @@ struct Flags {
...
@@ -5607,7 +5607,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_repeat flag has the given
// Creates a Flags struct where the g
tes
t_repeat flag has the given
// value.
// value.
static
Flags
Repeat
(
Int32
repeat
)
{
static
Flags
Repeat
(
Int32
repeat
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5615,7 +5615,7 @@ struct Flags {
...
@@ -5615,7 +5615,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_shuffle flag has the given
// Creates a Flags struct where the g
tes
t_shuffle flag has the given
// value.
// value.
static
Flags
Shuffle
(
bool
shuffle
)
{
static
Flags
Shuffle
(
bool
shuffle
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5639,7 +5639,7 @@ struct Flags {
...
@@ -5639,7 +5639,7 @@ struct Flags {
return
flags
;
return
flags
;
}
}
// Creates a Flags struct where the g
uni
t_throw_on_failure flag has
// Creates a Flags struct where the g
tes
t_throw_on_failure flag has
// the given value.
// the given value.
static
Flags
ThrowOnFailure
(
bool
throw_on_failure
)
{
static
Flags
ThrowOnFailure
(
bool
throw_on_failure
)
{
Flags
flags
;
Flags
flags
;
...
@@ -5799,28 +5799,28 @@ TEST_F(ParseFlagsTest, NoFlag) {
...
@@ -5799,28 +5799,28 @@ TEST_F(ParseFlagsTest, NoFlag) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
false
);
}
}
// Tests parsing a bad --g
uni
t_filter flag.
// Tests parsing a bad --g
tes
t_filter flag.
TEST_F
(
ParseFlagsTest
,
FilterBad
)
{
TEST_F
(
ParseFlagsTest
,
FilterBad
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_filter"
,
"--g
tes
t_filter"
,
NULL
NULL
};
};
const
char
*
argv2
[]
=
{
const
char
*
argv2
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_filter"
,
"--g
tes
t_filter"
,
NULL
NULL
};
};
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
""
),
true
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
""
),
true
);
}
}
// Tests parsing an empty --g
uni
t_filter flag.
// Tests parsing an empty --g
tes
t_filter flag.
TEST_F
(
ParseFlagsTest
,
FilterEmpty
)
{
TEST_F
(
ParseFlagsTest
,
FilterEmpty
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_filter="
,
"--g
tes
t_filter="
,
NULL
NULL
};
};
...
@@ -5832,11 +5832,11 @@ TEST_F(ParseFlagsTest, FilterEmpty) {
...
@@ -5832,11 +5832,11 @@ TEST_F(ParseFlagsTest, FilterEmpty) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
""
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
""
),
false
);
}
}
// Tests parsing a non-empty --g
uni
t_filter flag.
// Tests parsing a non-empty --g
tes
t_filter flag.
TEST_F
(
ParseFlagsTest
,
FilterNonEmpty
)
{
TEST_F
(
ParseFlagsTest
,
FilterNonEmpty
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_filter=abc"
,
"--g
tes
t_filter=abc"
,
NULL
NULL
};
};
...
@@ -5848,11 +5848,11 @@ TEST_F(ParseFlagsTest, FilterNonEmpty) {
...
@@ -5848,11 +5848,11 @@ TEST_F(ParseFlagsTest, FilterNonEmpty) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
"abc"
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
"abc"
),
false
);
}
}
// Tests parsing --g
uni
t_break_on_failure.
// Tests parsing --g
tes
t_break_on_failure.
TEST_F
(
ParseFlagsTest
,
BreakOnFailureWithoutValue
)
{
TEST_F
(
ParseFlagsTest
,
BreakOnFailureWithoutValue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure"
,
"--g
tes
t_break_on_failure"
,
NULL
NULL
};
};
...
@@ -5864,11 +5864,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureWithoutValue) {
...
@@ -5864,11 +5864,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureWithoutValue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_break_on_failure=0.
// Tests parsing --g
tes
t_break_on_failure=0.
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_0
)
{
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_0
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure=0"
,
"--g
tes
t_break_on_failure=0"
,
NULL
NULL
};
};
...
@@ -5880,11 +5880,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_0) {
...
@@ -5880,11 +5880,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_0) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_break_on_failure=f.
// Tests parsing --g
tes
t_break_on_failure=f.
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_f
)
{
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_f
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure=f"
,
"--g
tes
t_break_on_failure=f"
,
NULL
NULL
};
};
...
@@ -5896,11 +5896,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_f) {
...
@@ -5896,11 +5896,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_f) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_break_on_failure=F.
// Tests parsing --g
tes
t_break_on_failure=F.
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_F
)
{
TEST_F
(
ParseFlagsTest
,
BreakOnFailureFalse_F
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure=F"
,
"--g
tes
t_break_on_failure=F"
,
NULL
NULL
};
};
...
@@ -5912,12 +5912,12 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_F) {
...
@@ -5912,12 +5912,12 @@ TEST_F(ParseFlagsTest, BreakOnFailureFalse_F) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
false
),
false
);
}
}
// Tests parsing a --g
uni
t_break_on_failure flag that has a "true"
// Tests parsing a --g
tes
t_break_on_failure flag that has a "true"
// definition.
// definition.
TEST_F
(
ParseFlagsTest
,
BreakOnFailureTrue
)
{
TEST_F
(
ParseFlagsTest
,
BreakOnFailureTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure=1"
,
"--g
tes
t_break_on_failure=1"
,
NULL
NULL
};
};
...
@@ -5929,11 +5929,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureTrue) {
...
@@ -5929,11 +5929,11 @@ TEST_F(ParseFlagsTest, BreakOnFailureTrue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
BreakOnFailure
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_catch_exceptions.
// Tests parsing --g
tes
t_catch_exceptions.
TEST_F
(
ParseFlagsTest
,
CatchExceptions
)
{
TEST_F
(
ParseFlagsTest
,
CatchExceptions
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_catch_exceptions"
,
"--g
tes
t_catch_exceptions"
,
NULL
NULL
};
};
...
@@ -5945,11 +5945,11 @@ TEST_F(ParseFlagsTest, CatchExceptions) {
...
@@ -5945,11 +5945,11 @@ TEST_F(ParseFlagsTest, CatchExceptions) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
CatchExceptions
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
CatchExceptions
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_death_test_use_fork.
// Tests parsing --g
tes
t_death_test_use_fork.
TEST_F
(
ParseFlagsTest
,
DeathTestUseFork
)
{
TEST_F
(
ParseFlagsTest
,
DeathTestUseFork
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_death_test_use_fork"
,
"--g
tes
t_death_test_use_fork"
,
NULL
NULL
};
};
...
@@ -5966,8 +5966,8 @@ TEST_F(ParseFlagsTest, DeathTestUseFork) {
...
@@ -5966,8 +5966,8 @@ TEST_F(ParseFlagsTest, DeathTestUseFork) {
TEST_F
(
ParseFlagsTest
,
DuplicatedFlags
)
{
TEST_F
(
ParseFlagsTest
,
DuplicatedFlags
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_filter=a"
,
"--g
tes
t_filter=a"
,
"--g
uni
t_filter=b"
,
"--g
tes
t_filter=b"
,
NULL
NULL
};
};
...
@@ -5983,9 +5983,9 @@ TEST_F(ParseFlagsTest, DuplicatedFlags) {
...
@@ -5983,9 +5983,9 @@ TEST_F(ParseFlagsTest, DuplicatedFlags) {
TEST_F
(
ParseFlagsTest
,
UnrecognizedFlag
)
{
TEST_F
(
ParseFlagsTest
,
UnrecognizedFlag
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_break_on_failure"
,
"--g
tes
t_break_on_failure"
,
"bar"
,
// Unrecognized by Google Test.
"bar"
,
// Unrecognized by Google Test.
"--g
uni
t_filter=b"
,
"--g
tes
t_filter=b"
,
NULL
NULL
};
};
...
@@ -6001,11 +6001,11 @@ TEST_F(ParseFlagsTest, UnrecognizedFlag) {
...
@@ -6001,11 +6001,11 @@ TEST_F(ParseFlagsTest, UnrecognizedFlag) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
flags
,
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
flags
,
false
);
}
}
// Tests having a --g
uni
t_list_tests flag
// Tests having a --g
tes
t_list_tests flag
TEST_F
(
ParseFlagsTest
,
ListTestsFlag
)
{
TEST_F
(
ParseFlagsTest
,
ListTestsFlag
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_list_tests"
,
"--g
tes
t_list_tests"
,
NULL
NULL
};
};
...
@@ -6017,11 +6017,11 @@ TEST_F(ParseFlagsTest, ListTestsFlag) {
...
@@ -6017,11 +6017,11 @@ TEST_F(ParseFlagsTest, ListTestsFlag) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
true
),
false
);
}
}
// Tests having a --g
uni
t_list_tests flag with a "true" value
// Tests having a --g
tes
t_list_tests flag with a "true" value
TEST_F
(
ParseFlagsTest
,
ListTestsTrue
)
{
TEST_F
(
ParseFlagsTest
,
ListTestsTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_list_tests=1"
,
"--g
tes
t_list_tests=1"
,
NULL
NULL
};
};
...
@@ -6033,11 +6033,11 @@ TEST_F(ParseFlagsTest, ListTestsTrue) {
...
@@ -6033,11 +6033,11 @@ TEST_F(ParseFlagsTest, ListTestsTrue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
true
),
false
);
}
}
// Tests having a --g
uni
t_list_tests flag with a "false" value
// Tests having a --g
tes
t_list_tests flag with a "false" value
TEST_F
(
ParseFlagsTest
,
ListTestsFalse
)
{
TEST_F
(
ParseFlagsTest
,
ListTestsFalse
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_list_tests=0"
,
"--g
tes
t_list_tests=0"
,
NULL
NULL
};
};
...
@@ -6049,11 +6049,11 @@ TEST_F(ParseFlagsTest, ListTestsFalse) {
...
@@ -6049,11 +6049,11 @@ TEST_F(ParseFlagsTest, ListTestsFalse) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_list_tests=f.
// Tests parsing --g
tes
t_list_tests=f.
TEST_F
(
ParseFlagsTest
,
ListTestsFalse_f
)
{
TEST_F
(
ParseFlagsTest
,
ListTestsFalse_f
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_list_tests=f"
,
"--g
tes
t_list_tests=f"
,
NULL
NULL
};
};
...
@@ -6065,11 +6065,11 @@ TEST_F(ParseFlagsTest, ListTestsFalse_f) {
...
@@ -6065,11 +6065,11 @@ TEST_F(ParseFlagsTest, ListTestsFalse_f) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_list_tests=F.
// Tests parsing --g
tes
t_list_tests=F.
TEST_F
(
ParseFlagsTest
,
ListTestsFalse_F
)
{
TEST_F
(
ParseFlagsTest
,
ListTestsFalse_F
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_list_tests=F"
,
"--g
tes
t_list_tests=F"
,
NULL
NULL
};
};
...
@@ -6081,28 +6081,28 @@ TEST_F(ParseFlagsTest, ListTestsFalse_F) {
...
@@ -6081,28 +6081,28 @@ TEST_F(ParseFlagsTest, ListTestsFalse_F) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ListTests
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_output (invalid).
// Tests parsing --g
tes
t_output (invalid).
TEST_F
(
ParseFlagsTest
,
OutputEmpty
)
{
TEST_F
(
ParseFlagsTest
,
OutputEmpty
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_output"
,
"--g
tes
t_output"
,
NULL
NULL
};
};
const
char
*
argv2
[]
=
{
const
char
*
argv2
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_output"
,
"--g
tes
t_output"
,
NULL
NULL
};
};
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
true
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
true
);
}
}
// Tests parsing --g
uni
t_output=xml
// Tests parsing --g
tes
t_output=xml
TEST_F
(
ParseFlagsTest
,
OutputXml
)
{
TEST_F
(
ParseFlagsTest
,
OutputXml
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_output=xml"
,
"--g
tes
t_output=xml"
,
NULL
NULL
};
};
...
@@ -6114,11 +6114,11 @@ TEST_F(ParseFlagsTest, OutputXml) {
...
@@ -6114,11 +6114,11 @@ TEST_F(ParseFlagsTest, OutputXml) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Output
(
"xml"
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Output
(
"xml"
),
false
);
}
}
// Tests parsing --g
uni
t_output=xml:file
// Tests parsing --g
tes
t_output=xml:file
TEST_F
(
ParseFlagsTest
,
OutputXmlFile
)
{
TEST_F
(
ParseFlagsTest
,
OutputXmlFile
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_output=xml:file"
,
"--g
tes
t_output=xml:file"
,
NULL
NULL
};
};
...
@@ -6130,11 +6130,11 @@ TEST_F(ParseFlagsTest, OutputXmlFile) {
...
@@ -6130,11 +6130,11 @@ TEST_F(ParseFlagsTest, OutputXmlFile) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Output
(
"xml:file"
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Output
(
"xml:file"
),
false
);
}
}
// Tests parsing --g
uni
t_output=xml:directory/path/
// Tests parsing --g
tes
t_output=xml:directory/path/
TEST_F
(
ParseFlagsTest
,
OutputXmlDirectory
)
{
TEST_F
(
ParseFlagsTest
,
OutputXmlDirectory
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_output=xml:directory/path/"
,
"--g
tes
t_output=xml:directory/path/"
,
NULL
NULL
};
};
...
@@ -6147,11 +6147,11 @@ TEST_F(ParseFlagsTest, OutputXmlDirectory) {
...
@@ -6147,11 +6147,11 @@ TEST_F(ParseFlagsTest, OutputXmlDirectory) {
Flags
::
Output
(
"xml:directory/path/"
),
false
);
Flags
::
Output
(
"xml:directory/path/"
),
false
);
}
}
// Tests having a --g
uni
t_print_time flag
// Tests having a --g
tes
t_print_time flag
TEST_F
(
ParseFlagsTest
,
PrintTimeFlag
)
{
TEST_F
(
ParseFlagsTest
,
PrintTimeFlag
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_print_time"
,
"--g
tes
t_print_time"
,
NULL
NULL
};
};
...
@@ -6163,11 +6163,11 @@ TEST_F(ParseFlagsTest, PrintTimeFlag) {
...
@@ -6163,11 +6163,11 @@ TEST_F(ParseFlagsTest, PrintTimeFlag) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
true
),
false
);
}
}
// Tests having a --g
uni
t_print_time flag with a "true" value
// Tests having a --g
tes
t_print_time flag with a "true" value
TEST_F
(
ParseFlagsTest
,
PrintTimeTrue
)
{
TEST_F
(
ParseFlagsTest
,
PrintTimeTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_print_time=1"
,
"--g
tes
t_print_time=1"
,
NULL
NULL
};
};
...
@@ -6179,11 +6179,11 @@ TEST_F(ParseFlagsTest, PrintTimeTrue) {
...
@@ -6179,11 +6179,11 @@ TEST_F(ParseFlagsTest, PrintTimeTrue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
true
),
false
);
}
}
// Tests having a --g
uni
t_print_time flag with a "false" value
// Tests having a --g
tes
t_print_time flag with a "false" value
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse
)
{
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_print_time=0"
,
"--g
tes
t_print_time=0"
,
NULL
NULL
};
};
...
@@ -6195,11 +6195,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse) {
...
@@ -6195,11 +6195,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_print_time=f.
// Tests parsing --g
tes
t_print_time=f.
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse_f
)
{
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse_f
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_print_time=f"
,
"--g
tes
t_print_time=f"
,
NULL
NULL
};
};
...
@@ -6211,11 +6211,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse_f) {
...
@@ -6211,11 +6211,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse_f) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_print_time=F.
// Tests parsing --g
tes
t_print_time=F.
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse_F
)
{
TEST_F
(
ParseFlagsTest
,
PrintTimeFalse_F
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_print_time=F"
,
"--g
tes
t_print_time=F"
,
NULL
NULL
};
};
...
@@ -6227,11 +6227,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse_F) {
...
@@ -6227,11 +6227,11 @@ TEST_F(ParseFlagsTest, PrintTimeFalse_F) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
PrintTime
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_random_seed=number
// Tests parsing --g
tes
t_random_seed=number
TEST_F
(
ParseFlagsTest
,
RandomSeed
)
{
TEST_F
(
ParseFlagsTest
,
RandomSeed
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_random_seed=1000"
,
"--g
tes
t_random_seed=1000"
,
NULL
NULL
};
};
...
@@ -6243,11 +6243,11 @@ TEST_F(ParseFlagsTest, RandomSeed) {
...
@@ -6243,11 +6243,11 @@ TEST_F(ParseFlagsTest, RandomSeed) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
RandomSeed
(
1000
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
RandomSeed
(
1000
),
false
);
}
}
// Tests parsing --g
uni
t_repeat=number
// Tests parsing --g
tes
t_repeat=number
TEST_F
(
ParseFlagsTest
,
Repeat
)
{
TEST_F
(
ParseFlagsTest
,
Repeat
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_repeat=1000"
,
"--g
tes
t_repeat=1000"
,
NULL
NULL
};
};
...
@@ -6259,11 +6259,11 @@ TEST_F(ParseFlagsTest, Repeat) {
...
@@ -6259,11 +6259,11 @@ TEST_F(ParseFlagsTest, Repeat) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Repeat
(
1000
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Repeat
(
1000
),
false
);
}
}
// Tests having a --g
uni
t_also_run_disabled_tests flag
// Tests having a --g
tes
t_also_run_disabled_tests flag
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsFlag
)
{
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsFlag
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_also_run_disabled_tests"
,
"--g
tes
t_also_run_disabled_tests"
,
NULL
NULL
};
};
...
@@ -6276,11 +6276,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsFlag) {
...
@@ -6276,11 +6276,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsFlag) {
Flags
::
AlsoRunDisabledTests
(
true
),
false
);
Flags
::
AlsoRunDisabledTests
(
true
),
false
);
}
}
// Tests having a --g
uni
t_also_run_disabled_tests flag with a "true" value
// Tests having a --g
tes
t_also_run_disabled_tests flag with a "true" value
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsTrue
)
{
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_also_run_disabled_tests=1"
,
"--g
tes
t_also_run_disabled_tests=1"
,
NULL
NULL
};
};
...
@@ -6293,11 +6293,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsTrue) {
...
@@ -6293,11 +6293,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsTrue) {
Flags
::
AlsoRunDisabledTests
(
true
),
false
);
Flags
::
AlsoRunDisabledTests
(
true
),
false
);
}
}
// Tests having a --g
uni
t_also_run_disabled_tests flag with a "false" value
// Tests having a --g
tes
t_also_run_disabled_tests flag with a "false" value
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsFalse
)
{
TEST_F
(
ParseFlagsTest
,
AlsoRunDisabledTestsFalse
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_also_run_disabled_tests=0"
,
"--g
tes
t_also_run_disabled_tests=0"
,
NULL
NULL
};
};
...
@@ -6310,11 +6310,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsFalse) {
...
@@ -6310,11 +6310,11 @@ TEST_F(ParseFlagsTest, AlsoRunDisabledTestsFalse) {
Flags
::
AlsoRunDisabledTests
(
false
),
false
);
Flags
::
AlsoRunDisabledTests
(
false
),
false
);
}
}
// Tests parsing --g
uni
t_shuffle.
// Tests parsing --g
tes
t_shuffle.
TEST_F
(
ParseFlagsTest
,
ShuffleWithoutValue
)
{
TEST_F
(
ParseFlagsTest
,
ShuffleWithoutValue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_shuffle"
,
"--g
tes
t_shuffle"
,
NULL
NULL
};
};
...
@@ -6326,11 +6326,11 @@ TEST_F(ParseFlagsTest, ShuffleWithoutValue) {
...
@@ -6326,11 +6326,11 @@ TEST_F(ParseFlagsTest, ShuffleWithoutValue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_shuffle=0.
// Tests parsing --g
tes
t_shuffle=0.
TEST_F
(
ParseFlagsTest
,
ShuffleFalse_0
)
{
TEST_F
(
ParseFlagsTest
,
ShuffleFalse_0
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_shuffle=0"
,
"--g
tes
t_shuffle=0"
,
NULL
NULL
};
};
...
@@ -6342,11 +6342,11 @@ TEST_F(ParseFlagsTest, ShuffleFalse_0) {
...
@@ -6342,11 +6342,11 @@ TEST_F(ParseFlagsTest, ShuffleFalse_0) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
false
),
false
);
}
}
// Tests parsing a --g
uni
t_shuffle flag that has a "true" definition.
// Tests parsing a --g
tes
t_shuffle flag that has a "true" definition.
TEST_F
(
ParseFlagsTest
,
ShuffleTrue
)
{
TEST_F
(
ParseFlagsTest
,
ShuffleTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_shuffle=1"
,
"--g
tes
t_shuffle=1"
,
NULL
NULL
};
};
...
@@ -6358,11 +6358,11 @@ TEST_F(ParseFlagsTest, ShuffleTrue) {
...
@@ -6358,11 +6358,11 @@ TEST_F(ParseFlagsTest, ShuffleTrue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Shuffle
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_stack_trace_depth=number.
// Tests parsing --g
tes
t_stack_trace_depth=number.
TEST_F
(
ParseFlagsTest
,
StackTraceDepth
)
{
TEST_F
(
ParseFlagsTest
,
StackTraceDepth
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_stack_trace_depth=5"
,
"--g
tes
t_stack_trace_depth=5"
,
NULL
NULL
};
};
...
@@ -6377,7 +6377,7 @@ TEST_F(ParseFlagsTest, StackTraceDepth) {
...
@@ -6377,7 +6377,7 @@ TEST_F(ParseFlagsTest, StackTraceDepth) {
TEST_F
(
ParseFlagsTest
,
StreamResultTo
)
{
TEST_F
(
ParseFlagsTest
,
StreamResultTo
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_stream_result_to=localhost:1234"
,
"--g
tes
t_stream_result_to=localhost:1234"
,
NULL
NULL
};
};
...
@@ -6390,11 +6390,11 @@ TEST_F(ParseFlagsTest, StreamResultTo) {
...
@@ -6390,11 +6390,11 @@ TEST_F(ParseFlagsTest, StreamResultTo) {
argv
,
argv2
,
Flags
::
StreamResultTo
(
"localhost:1234"
),
false
);
argv
,
argv2
,
Flags
::
StreamResultTo
(
"localhost:1234"
),
false
);
}
}
// Tests parsing --g
uni
t_throw_on_failure.
// Tests parsing --g
tes
t_throw_on_failure.
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureWithoutValue
)
{
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureWithoutValue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_throw_on_failure"
,
"--g
tes
t_throw_on_failure"
,
NULL
NULL
};
};
...
@@ -6406,11 +6406,11 @@ TEST_F(ParseFlagsTest, ThrowOnFailureWithoutValue) {
...
@@ -6406,11 +6406,11 @@ TEST_F(ParseFlagsTest, ThrowOnFailureWithoutValue) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ThrowOnFailure
(
true
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ThrowOnFailure
(
true
),
false
);
}
}
// Tests parsing --g
uni
t_throw_on_failure=0.
// Tests parsing --g
tes
t_throw_on_failure=0.
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureFalse_0
)
{
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureFalse_0
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_throw_on_failure=0"
,
"--g
tes
t_throw_on_failure=0"
,
NULL
NULL
};
};
...
@@ -6422,12 +6422,12 @@ TEST_F(ParseFlagsTest, ThrowOnFailureFalse_0) {
...
@@ -6422,12 +6422,12 @@ TEST_F(ParseFlagsTest, ThrowOnFailureFalse_0) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ThrowOnFailure
(
false
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
ThrowOnFailure
(
false
),
false
);
}
}
// Tests parsing a --g
uni
t_throw_on_failure flag that has a "true"
// Tests parsing a --g
tes
t_throw_on_failure flag that has a "true"
// definition.
// definition.
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureTrue
)
{
TEST_F
(
ParseFlagsTest
,
ThrowOnFailureTrue
)
{
const
char
*
argv
[]
=
{
const
char
*
argv
[]
=
{
"foo.exe"
,
"foo.exe"
,
"--g
uni
t_throw_on_failure=1"
,
"--g
tes
t_throw_on_failure=1"
,
NULL
NULL
};
};
...
@@ -6444,16 +6444,16 @@ TEST_F(ParseFlagsTest, ThrowOnFailureTrue) {
...
@@ -6444,16 +6444,16 @@ TEST_F(ParseFlagsTest, ThrowOnFailureTrue) {
TEST_F
(
ParseFlagsTest
,
WideStrings
)
{
TEST_F
(
ParseFlagsTest
,
WideStrings
)
{
const
wchar_t
*
argv
[]
=
{
const
wchar_t
*
argv
[]
=
{
L"foo.exe"
,
L"foo.exe"
,
L"--g
uni
t_filter=Foo*"
,
L"--g
tes
t_filter=Foo*"
,
L"--g
uni
t_list_tests=1"
,
L"--g
tes
t_list_tests=1"
,
L"--g
uni
t_break_on_failure"
,
L"--g
tes
t_break_on_failure"
,
L"--non_g
uni
t_flag"
,
L"--non_g
tes
t_flag"
,
NULL
NULL
};
};
const
wchar_t
*
argv2
[]
=
{
const
wchar_t
*
argv2
[]
=
{
L"foo.exe"
,
L"foo.exe"
,
L"--non_g
uni
t_flag"
,
L"--non_g
tes
t_flag"
,
NULL
NULL
};
};
...
@@ -6517,7 +6517,7 @@ TEST_F(FlagfileTest, Empty) {
...
@@ -6517,7 +6517,7 @@ TEST_F(FlagfileTest, Empty) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
(),
false
);
}
}
// Tests passing a non-empty --g
uni
t_filter flag via --g
uni
t_flagfile.
// Tests passing a non-empty --g
tes
t_filter flag via --g
tes
t_flagfile.
TEST_F
(
FlagfileTest
,
FilterNonEmpty
)
{
TEST_F
(
FlagfileTest
,
FilterNonEmpty
)
{
internal
::
FilePath
flagfile_path
(
CreateFlagfile
(
internal
::
FilePath
flagfile_path
(
CreateFlagfile
(
"--"
GTEST_FLAG_PREFIX_
"filter=abc"
));
"--"
GTEST_FLAG_PREFIX_
"filter=abc"
));
...
@@ -6538,7 +6538,7 @@ TEST_F(FlagfileTest, FilterNonEmpty) {
...
@@ -6538,7 +6538,7 @@ TEST_F(FlagfileTest, FilterNonEmpty) {
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
"abc"
),
false
);
GTEST_TEST_PARSING_FLAGS_
(
argv
,
argv2
,
Flags
::
Filter
(
"abc"
),
false
);
}
}
// Tests passing several flags via --g
uni
t_flagfile.
// Tests passing several flags via --g
tes
t_flagfile.
TEST_F
(
FlagfileTest
,
SeveralFlags
)
{
TEST_F
(
FlagfileTest
,
SeveralFlags
)
{
internal
::
FilePath
flagfile_path
(
CreateFlagfile
(
internal
::
FilePath
flagfile_path
(
CreateFlagfile
(
"--"
GTEST_FLAG_PREFIX_
"filter=abc
\n
"
"--"
GTEST_FLAG_PREFIX_
"filter=abc
\n
"
...
...
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