|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Namespaces | |
| internal | |
Classes | |
| class | AssertionResult |
| class | CurrentTestInfoTest |
| class | EmptyTestEventListener |
| class | Environment |
| struct | Flags |
| class | InitGoogleTestTest |
| class | Message |
| class | ScopedFakeTestPartResultReporter |
| class | SetUpTestCaseTest |
| class | SocketTestClient |
| class | SocketTestServer |
| class | StreamSink |
| class | StreamSource |
| class | Test |
| class | TestCase |
| class | TestEventListener |
| class | TestEventListeners |
| class | TestInfo |
| class | TestInfoTest |
| class | TestPartResult |
| class | TestPartResultArray |
| class | TestPartResultReporterInterface |
| class | TestProperty |
| class | TestResult |
| class | UnitTest |
Enumerations | |
| enum | StreamSinkEvent { SSE_OPEN = SE_OPEN, SSE_READ = SE_READ, SSE_WRITE = SE_WRITE, SSE_CLOSE = SE_CLOSE, SSE_ERROR = 16, SSE_OPEN = SE_OPEN, SSE_READ = SE_READ, SSE_WRITE = SE_WRITE, SSE_CLOSE = SE_CLOSE, SSE_ERROR = 16 } |
| enum | StreamSinkEvent { SSE_OPEN = SE_OPEN, SSE_READ = SE_READ, SSE_WRITE = SE_WRITE, SSE_CLOSE = SE_CLOSE, SSE_ERROR = 16, SSE_OPEN = SE_OPEN, SSE_READ = SE_READ, SSE_WRITE = SE_WRITE, SSE_CLOSE = SE_CLOSE, SSE_ERROR = 16 } |
Functions | |
| AssertionResult | CmpHelperMemEq (const char *expected_expression, const char *expected_length_expression, const char *actual_expression, const char *actual_length_expression, const void *expected, size_t expected_length, const void *actual, size_t actual_length) |
| bool | IsScreencastingAvailable () |
| GTEST_DECLARE_string_ (death_test_style) | |
| std::ostream & | operator<< (std::ostream &os, const Message &sb) |
| std::ostream & | operator<< (std::ostream &os, const TestPartResult &result) |
| GTEST_DECLARE_bool_ (also_run_disabled_tests) | |
| GTEST_DECLARE_bool_ (break_on_failure) | |
| GTEST_DECLARE_bool_ (catch_exceptions) | |
| GTEST_DECLARE_string_ (color) | |
| GTEST_DECLARE_string_ (filter) | |
| GTEST_DECLARE_bool_ (list_tests) | |
| GTEST_DECLARE_string_ (output) | |
| GTEST_DECLARE_bool_ (print_time) | |
| GTEST_DECLARE_int32_ (random_seed) | |
| GTEST_DECLARE_int32_ (repeat) | |
| GTEST_DECLARE_bool_ (show_internal_stack_frames) | |
| GTEST_DECLARE_bool_ (shuffle) | |
| GTEST_DECLARE_int32_ (stack_trace_depth) | |
| GTEST_DECLARE_bool_ (throw_on_failure) | |
| GTEST_API_ AssertionResult | AssertionSuccess () |
| GTEST_API_ AssertionResult | AssertionFailure () |
| GTEST_API_ AssertionResult | AssertionFailure (const Message &msg) |
| GTEST_DEFINE_string_ (death_test_style, internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle), "Indicates how to run a death test in a forked child process: " "\hreadsafe\(child process re-executes the test binary " "from the beginning, running only the specific death test) or " "\ast\(child process runs the death test immediately " "after forking).") | |
| GTEST_DEFINE_bool_ (death_test_use_fork, internal::BoolFromGTestEnv("death_test_use_fork", false), "Instructs to use fork()/_exit() instead of clone() in death tests. " "Ignored and always uses fork() on POSIX systems where clone() is not " "implemented. Useful when running under valgrind or similar tools if " "those do not support clone(). Valgrind 3.3.1 will just fail if " "it sees an unsupported combination of clone() flags. " "It is not recommended to use this flag w/o valgrind though it will " "work in 99% of the cases. Once valgrind is fixed, this flag will " "most likely be removed.") | |
| GTEST_DECLARE_bool_ (death_test_use_fork) | |
| GTEST_DEFINE_bool_ (also_run_disabled_tests, internal::BoolFromGTestEnv("also_run_disabled_tests", false), "Run disabled tests too, in addition to the tests normally being run.") | |
| GTEST_DEFINE_bool_ (break_on_failure, internal::BoolFromGTestEnv("break_on_failure", false), "True iff a failed assertion should be a debugger break-point.") | |
| GTEST_DEFINE_bool_ (catch_exceptions, internal::BoolFromGTestEnv("catch_exceptions", false), "True iff " GTEST_NAME_ " should catch exceptions and treat them as test failures.") | |
| GTEST_DEFINE_string_ (color, internal::StringFromGTestEnv("color", "auto"), "Whether to use colors in the output. Valid values: yes, no, " "and auto. 'auto' means to use colors if the output is " "being sent to a terminal and the TERM environment variable " "is set to xterm, xterm-color, xterm-256color, linux or cygwin.") | |
| GTEST_DEFINE_string_ (filter, internal::StringFromGTestEnv("filter", kUniversalFilter), "A colon-separated list of glob (not regex) patterns " "for filtering the tests to run, optionally followed by a " "'-' and a : separated list of negative patterns (tests to " "exclude). A test is run if it matches one of the positive " "patterns and does not match any of the negative patterns.") | |
| GTEST_DEFINE_bool_ (list_tests, false, "List all tests without running them.") | |
| GTEST_DEFINE_string_ (output, internal::StringFromGTestEnv("output", ""), "A format (currently must be \ml\, optionally followed " "by a colon and an output file name or directory. A directory " "is indicated by a trailing pathname separator. " "Examples: \ml:filename.xml\ \ml::directoryname/\ " "If a directory is specified, output files will be created " "within that directory, with file-names based on the test " "executable's name and, if necessary, made unique by adding " "digits.") | |
| GTEST_DEFINE_bool_ (print_time, internal::BoolFromGTestEnv("print_time", true), "True iff " GTEST_NAME_ " should display elapsed time in text output.") | |
| GTEST_DEFINE_int32_ (random_seed, internal::Int32FromGTestEnv("random_seed", 0), "Random number seed to use when shuffling test orders. Must be in range " "[1, 99999], or 0 to use a seed based on the current time.") | |
| GTEST_DEFINE_int32_ (repeat, internal::Int32FromGTestEnv("repeat", 1), "How many times to repeat each test. Specify a negative number " "for repeating forever. Useful for shaking out flaky tests.") | |
| GTEST_DEFINE_bool_ (show_internal_stack_frames, false, "True iff " GTEST_NAME_ " should include internal stack frames when " "printing test failure stack traces.") | |
| GTEST_DEFINE_bool_ (shuffle, internal::BoolFromGTestEnv("shuffle", false), "True iff " GTEST_NAME_ " should randomize tests' order on every run.") | |
| GTEST_DEFINE_int32_ (stack_trace_depth, internal::Int32FromGTestEnv("stack_trace_depth", kMaxStackTraceDepth), "The maximum number of stack frames to print when an " "assertion fails. The valid range is 0 through 100, inclusive.") | |
| GTEST_DEFINE_bool_ (throw_on_failure, internal::BoolFromGTestEnv("throw_on_failure", false), "When this flag is specified, a failed assertion will throw an exception " "if exceptions are enabled or exit the program with a non-zero code " "otherwise.") | |
| TEST (GTestEnvVarTest, Dummy) | |
| void | PrintFlag (const char *flag) |
| TEST (SuccessfulAssertionTest, SUCCEED) | |
| TEST (SuccessfulAssertionTest, EXPECT) | |
| TEST (SuccessfulAssertionTest, EXPECT_STR) | |
| TEST (SuccessfulAssertionTest, ASSERT) | |
| TEST (SuccessfulAssertionTest, ASSERT_STR) | |
| TEST_F (TestInfoTest, Names) | |
| TEST_F (TestInfoTest, result) | |
| TEST_F (SetUpTestCaseTest, Test1) | |
| TEST_F (SetUpTestCaseTest, Test2) | |
| TEST_F (InitGoogleTestTest, Empty) | |
| TEST_F (InitGoogleTestTest, NoFlag) | |
| TEST_F (InitGoogleTestTest, FilterBad) | |
| TEST_F (InitGoogleTestTest, FilterEmpty) | |
| TEST_F (InitGoogleTestTest, FilterNonEmpty) | |
| TEST_F (InitGoogleTestTest, BreakOnFailureWithoutValue) | |
| TEST_F (InitGoogleTestTest, BreakOnFailureFalse_0) | |
| TEST_F (InitGoogleTestTest, BreakOnFailureFalse_f) | |
| TEST_F (InitGoogleTestTest, BreakOnFailureFalse_F) | |
| TEST_F (InitGoogleTestTest, BreakOnFailureTrue) | |
| TEST_F (InitGoogleTestTest, CatchExceptions) | |
| TEST_F (InitGoogleTestTest, DeathTestUseFork) | |
| TEST_F (InitGoogleTestTest, DuplicatedFlags) | |
| TEST_F (InitGoogleTestTest, UnrecognizedFlag) | |
| TEST_F (InitGoogleTestTest, ListTestsFlag) | |
| TEST_F (InitGoogleTestTest, ListTestsTrue) | |
| TEST_F (InitGoogleTestTest, ListTestsFalse) | |
| TEST_F (InitGoogleTestTest, ListTestsFalse_f) | |
| TEST_F (InitGoogleTestTest, ListTestsFalse_F) | |
| TEST_F (InitGoogleTestTest, OutputEmpty) | |
| TEST_F (InitGoogleTestTest, OutputXml) | |
| TEST_F (InitGoogleTestTest, OutputXmlFile) | |
| TEST_F (InitGoogleTestTest, OutputXmlDirectory) | |
| TEST_F (InitGoogleTestTest, PrintTimeFlag) | |
| TEST_F (InitGoogleTestTest, PrintTimeTrue) | |
| TEST_F (InitGoogleTestTest, PrintTimeFalse) | |
| TEST_F (InitGoogleTestTest, PrintTimeFalse_f) | |
| TEST_F (InitGoogleTestTest, PrintTimeFalse_F) | |
| TEST_F (InitGoogleTestTest, RandomSeed) | |
| TEST_F (InitGoogleTestTest, Repeat) | |
| TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsFlag) | |
| TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsTrue) | |
| TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsFalse) | |
| TEST_F (InitGoogleTestTest, ShuffleWithoutValue) | |
| TEST_F (InitGoogleTestTest, ShuffleFalse_0) | |
| TEST_F (InitGoogleTestTest, ShuffleTrue) | |
| TEST_F (InitGoogleTestTest, StackTraceDepth) | |
| TEST_F (InitGoogleTestTest, ThrowOnFailureWithoutValue) | |
| TEST_F (InitGoogleTestTest, ThrowOnFailureFalse_0) | |
| TEST_F (InitGoogleTestTest, ThrowOnFailureTrue) | |
| TEST_F (CurrentTestInfoTest, WorksForFirstTestInATestCase) | |
| TEST_F (CurrentTestInfoTest, WorksForSecondTestInATestCase) | |
Variables | |
| const int | kMaxStackTraceDepth = 100 |
| AssertionResult testing::AssertionFailure | ( | ) |
| AssertionResult testing::AssertionFailure | ( | const Message & | msg | ) |
| AssertionResult testing::AssertionSuccess | ( | ) |
|
inline |
actual_value.Equals(actual_expression)) {
expected_value.Equals(expected_expression)) {
actual_value.Equals(actual_expression)) {
expected_value.Equals(expected_expression)) {
actual_value.Equals(actual_expression)) {
expected_value.Equals(expected_expression)) {
| testing::GTEST_DECLARE_bool_ | ( | death_test_use_fork | ) |
| testing::GTEST_DECLARE_bool_ | ( | also_run_disabled_tests | ) |
| testing::GTEST_DECLARE_bool_ | ( | break_on_failure | ) |
| testing::GTEST_DECLARE_bool_ | ( | catch_exceptions | ) |
| testing::GTEST_DECLARE_bool_ | ( | list_tests | ) |
| testing::GTEST_DECLARE_bool_ | ( | print_time | ) |
| testing::GTEST_DECLARE_bool_ | ( | show_internal_stack_frames | ) |
| testing::GTEST_DECLARE_bool_ | ( | shuffle | ) |
| testing::GTEST_DECLARE_bool_ | ( | throw_on_failure | ) |
| testing::GTEST_DECLARE_int32_ | ( | random_seed | ) |
| testing::GTEST_DECLARE_int32_ | ( | repeat | ) |
| testing::GTEST_DECLARE_int32_ | ( | stack_trace_depth | ) |
| testing::GTEST_DECLARE_string_ | ( | death_test_style | ) |
| testing::GTEST_DECLARE_string_ | ( | color | ) |
| testing::GTEST_DECLARE_string_ | ( | filter | ) |
| testing::GTEST_DECLARE_string_ | ( | output | ) |
| testing::GTEST_DEFINE_bool_ | ( | death_test_use_fork | , |
| internal::BoolFromGTestEnv("death_test_use_fork", false) | , | ||
| "Instructs to use fork()/_exit() instead of clone() in death tests. " "Ignored and always uses fork() on POSIX systems where clone() is not " "implemented. Useful when running under valgrind or similar tools if " "those do not support clone(). Valgrind 3.3.1 will just fail if " "it sees an unsupported combination of clone() flags. " "It is not recommended to use this flag w/o valgrind though it will " "work in 99% of the cases. Once valgrind is | fixed, | ||
| this flag will " "most likely be removed." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | also_run_disabled_tests | , |
| internal::BoolFromGTestEnv("also_run_disabled_tests", false) | , | ||
| "Run disabled tests | too, | ||
| in addition to the tests normally being run." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | break_on_failure | , |
| internal::BoolFromGTestEnv("break_on_failure", false) | , | ||
| "True iff a failed assertion should be a debugger break-point." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | catch_exceptions | , |
| internal::BoolFromGTestEnv("catch_exceptions", false) | , | ||
| "True iff " GTEST_NAME_ " should catch exceptions and treat them as test failures." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | print_time | , |
| internal::BoolFromGTestEnv("print_time", true) | , | ||
| "True iff " GTEST_NAME_ " should display elapsed time in text output." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | show_internal_stack_frames | , |
| false | , | ||
| "True iff " GTEST_NAME_ " should include internal stack frames when " "printing test failure stack traces." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | shuffle | , |
| internal::BoolFromGTestEnv("shuffle", false) | , | ||
| "True iff " GTEST_NAME_ " should randomize tests' order on every run." | |||
| ) |
| testing::GTEST_DEFINE_bool_ | ( | throw_on_failure | , |
| internal::BoolFromGTestEnv("throw_on_failure", false) | , | ||
| "When this flag is | specified, | ||
| a failed assertion will throw an exception " "if exceptions are enabled or exit the program with a non-zero code " "otherwise." | |||
| ) |
| testing::GTEST_DEFINE_int32_ | ( | random_seed | , |
| internal::Int32FromGTestEnv("random_seed", 0) | , | ||
| "Random number seed to use when shuffling test orders. Must be in range " " | [1, 99999], | ||
| or 0 to use a seed based on the current time." | |||
| ) |
| testing::GTEST_DEFINE_int32_ | ( | repeat | , |
| internal::Int32FromGTestEnv("repeat", 1) | , | ||
| "How many times to repeat each test. Specify a negative number " "for repeating forever. Useful for shaking out flaky tests." | |||
| ) |
| testing::GTEST_DEFINE_int32_ | ( | stack_trace_depth | , |
| internal::Int32FromGTestEnv("stack_trace_depth", kMaxStackTraceDepth) | , | ||
| "The maximum number of stack frames to print when an " "assertion fails. The valid range is 0 through | 100, | ||
| inclusive." | |||
| ) |
| testing::GTEST_DEFINE_string_ | ( | death_test_style | , |
| internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle) | , | ||
| "Indicates how to run a death test in a forked child process: " "\eadsafe\hild process re-executes the test binary " "from the beginning, running only the specific death test) or " "\t\hild process runs the death test immediately " "after forking)." | |||
| ) |
| testing::GTEST_DEFINE_string_ | ( | color | , |
| internal::StringFromGTestEnv("color", "auto") | , | ||
| "Whether to use colors in the output. Valid values: | yes, | ||
| no | , | ||
| " "and auto. 'auto' means to use colors if the output is " "being sent to a terminal and the TERM environment variable " "is set to | xterm, | ||
| xterm- | color, | ||
| xterm- | 256color, | ||
| linux or cygwin." | |||
| ) |
| testing::GTEST_DEFINE_string_ | ( | filter | , |
| internal::StringFromGTestEnv("filter", kUniversalFilter) | , | ||
| "A colon-separated list of glob (not regex) patterns " "for filtering the tests to | run, | ||
| optionally followed by a " "'-' and a :separated list of negative patterns(tests to " "exclude). A test is run if it matches one of the positive " "patterns and does not match any of the negative patterns." | |||
| ) |
| testing::GTEST_DEFINE_string_ | ( | output | , |
| internal::StringFromGTestEnv("output", "") | |||
| ) |
|
inline |
| std::ostream & testing::operator<< | ( | std::ostream & | os, |
| const TestPartResult & | result | ||
| ) |
|
inline |
| void testing::PrintFlag | ( | const char * | flag | ) |
| testing::TEST | ( | GTestEnvVarTest | , |
| Dummy | |||
| ) |
| testing::TEST | ( | SuccessfulAssertionTest | , |
| SUCCEED | |||
| ) |
| testing::TEST | ( | SuccessfulAssertionTest | , |
| EXPECT | |||
| ) |
| testing::TEST | ( | SuccessfulAssertionTest | , |
| EXPECT_STR | |||
| ) |
| testing::TEST | ( | SuccessfulAssertionTest | , |
| ASSERT | |||
| ) |
| testing::TEST | ( | SuccessfulAssertionTest | , |
| ASSERT_STR | |||
| ) |
| testing::TEST_F | ( | TestInfoTest | , |
| Names | |||
| ) |
| testing::TEST_F | ( | TestInfoTest | , |
| result | |||
| ) |
| testing::TEST_F | ( | SetUpTestCaseTest | , |
| Test1 | |||
| ) |
| testing::TEST_F | ( | SetUpTestCaseTest | , |
| Test2 | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| Empty | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| NoFlag | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| FilterBad | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| FilterEmpty | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| FilterNonEmpty | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| BreakOnFailureWithoutValue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| BreakOnFailureFalse_0 | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| BreakOnFailureFalse_f | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| BreakOnFailureFalse_F | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| BreakOnFailureTrue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| CatchExceptions | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| DeathTestUseFork | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| DuplicatedFlags | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| UnrecognizedFlag | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ListTestsFlag | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ListTestsTrue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ListTestsFalse | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ListTestsFalse_f | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ListTestsFalse_F | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| OutputEmpty | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| OutputXml | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| OutputXmlFile | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| OutputXmlDirectory | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| PrintTimeFlag | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| PrintTimeTrue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| PrintTimeFalse | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| PrintTimeFalse_f | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| PrintTimeFalse_F | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| RandomSeed | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| Repeat | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| AlsoRunDisabledTestsFlag | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| AlsoRunDisabledTestsTrue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| AlsoRunDisabledTestsFalse | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ShuffleWithoutValue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ShuffleFalse_0 | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ShuffleTrue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| StackTraceDepth | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ThrowOnFailureWithoutValue | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ThrowOnFailureFalse_0 | |||
| ) |
| testing::TEST_F | ( | InitGoogleTestTest | , |
| ThrowOnFailureTrue | |||
| ) |
| testing::TEST_F | ( | CurrentTestInfoTest | , |
| WorksForFirstTestInATestCase | |||
| ) |
| testing::TEST_F | ( | CurrentTestInfoTest | , |
| WorksForSecondTestInATestCase | |||
| ) |
| const int testing::kMaxStackTraceDepth = 100 |
1.8.13