Home
last modified time | relevance | path

Searched refs:EXPECT_WRITE (Results 1 – 7 of 7) sorted by relevance

/external/fmtlib/test/
Dcolor-test.cc17 EXPECT_WRITE(stdout, fmt::print(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST()
19 EXPECT_WRITE(stdout, fmt::print(fg(fmt::color::blue), "blue"), in TEST()
21 EXPECT_WRITE( in TEST()
25 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::bold, "bold"), in TEST()
27 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::italic, "italic"), in TEST()
29 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::underline, "underline"), in TEST()
31 EXPECT_WRITE(stdout, in TEST()
34 EXPECT_WRITE( in TEST()
38 EXPECT_WRITE(stderr, fmt::print(stderr, fmt::emphasis::bold, "bold error"), in TEST()
40 EXPECT_WRITE(stderr, fmt::print(stderr, fg(fmt::color::blue), "blue log"), in TEST()
[all …]
Dgtest-extra-test.cc163 EXPECT_NONFATAL_FAILURE(EXPECT_WRITE(stdout, std::printf("test"), p_++), in TEST_F()
171 EXPECT_WRITE( in TEST_F()
182 EXPECT_NONFATAL_FAILURE(EXPECT_WRITE( in TEST_F()
195 TEST(ExpectTest, EXPECT_WRITE) { in TEST() argument
196 EXPECT_WRITE(stdout, do_nothing(), ""); in TEST()
197 EXPECT_WRITE(stdout, std::printf("test"), "test"); in TEST()
198 EXPECT_WRITE(stderr, std::fprintf(stderr, "test"), "test"); in TEST()
199 EXPECT_NONFATAL_FAILURE(EXPECT_WRITE(stdout, std::printf("that"), "this"), in TEST()
204 TEST(StreamingAssertionsTest, EXPECT_WRITE) { in TEST() argument
205 EXPECT_WRITE(stdout, std::printf("test"), "test") << "unexpected failure"; in TEST()
[all …]
Dgtest-extra.h102 # define EXPECT_WRITE(file, statement, expected_output) \ macro
148 # define EXPECT_WRITE(file, statement, expected_output) \ macro
Dprintf-test.cc528 EXPECT_WRITE(stdout, fmt::printf("%1$s, %3$d %2$s", weekday, month, day), in TEST()
557 EXPECT_WRITE(stdout, fmt::vprintf("%d", args), "42"); in TEST()
558 EXPECT_WRITE(stdout, fmt::vfprintf(stdout, "%d", args), "42"); in TEST()
559 EXPECT_WRITE(stdout, fmt::vfprintf(std::cout, "%d", args), "42"); in TEST()
Dos-test.cc132 EXPECT_WRITE(stderr, in TEST()
241 EXPECT_WRITE( in TEST()
405 EXPECT_WRITE( in TEST()
Dposix-mock-test.cc235 EXPECT_WRITE( in TEST()
407 EXPECT_WRITE( in TEST()
Dformat-test.cc422 EXPECT_WRITE(stderr, fmt::report_system_error(EDOM, "test error"), in TEST()
1632 EXPECT_WRITE( in TEST()
1657 EXPECT_WRITE(stdout, fmt::print("Don't {}!", "panic"), "Don't panic!"); in TEST()
1658 EXPECT_WRITE(stderr, fmt::print(stderr, "Don't {}!", "panic"), in TEST()