13 #ifndef __PROCESS_GTEST_HPP__ 14 #define __PROCESS_GTEST_HPP__ 16 #include <gtest/gtest.h> 70 return future.
await(duration);
103 template <
typename T>
111 return ::testing::AssertionFailure()
112 <<
"Failed to wait " << duration <<
" for " << expr;
115 return ::testing::AssertionSuccess();
119 template <
typename T>
127 return ::testing::AssertionFailure()
128 <<
"Failed to wait " << duration <<
" for " << expr;
130 return ::testing::AssertionFailure()
131 << expr <<
" was discarded";
133 return ::testing::AssertionFailure()
134 <<
"(" << expr <<
").failure(): " << actual.
failure();
137 return ::testing::AssertionSuccess();
141 template <
typename T>
149 return ::testing::AssertionFailure()
150 <<
"Failed to wait " << duration <<
" for " << expr;
152 return ::testing::AssertionFailure()
153 << expr <<
" was discarded";
155 return ::testing::AssertionFailure()
156 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
159 return ::testing::AssertionSuccess();
163 template <
typename T>
171 return ::testing::AssertionFailure()
172 <<
"Failed to wait " << duration <<
" for " << expr;
174 return ::testing::AssertionFailure()
175 <<
"(" << expr <<
").failure(): " << actual.
failure();
177 return ::testing::AssertionFailure()
178 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
181 return ::testing::AssertionSuccess();
185 template <
typename T>
197 if (!latch->
await(duration)) {
198 return ::testing::AssertionFailure()
199 <<
"Failed to wait " << duration <<
" for " << expr;
201 return ::testing::AssertionFailure()
202 << expr <<
" was discarded";
204 return ::testing::AssertionFailure()
205 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
207 return ::testing::AssertionFailure()
208 <<
"(" << expr <<
").failure(): " << actual.
failure();
213 return ::testing::AssertionSuccess();
217 template <
typename T1,
typename T2>
219 const char* expectedExpr,
220 const char* actualExpr,
221 const char* durationExpr,
226 const ::testing::AssertionResult result =
230 if (expected == actual.
get()) {
231 return ::testing::AssertionSuccess();
233 return ::testing::AssertionFailure()
234 <<
"Value of: (" << actualExpr <<
").get()\n" 235 <<
" Actual: " << ::testing::PrintToString(actual.
get()) <<
"\n" 236 <<
"Expected: " << expectedExpr <<
"\n" 237 <<
"Which is: " << ::testing::PrintToString(expected);
245 #define AWAIT_ASSERT_ABANDONED_FOR(actual, duration) \ 246 ASSERT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) 249 #define AWAIT_ASSERT_ABANDONED(actual) \ 250 AWAIT_ASSERT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 253 #define AWAIT_EXPECT_ABANDONED_FOR(actual, duration) \ 254 EXPECT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) 257 #define AWAIT_EXPECT_ABANDONED(actual) \ 258 AWAIT_EXPECT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 262 #define AWAIT_FOR(actual, duration) \ 263 ASSERT_PRED_FORMAT2(Await, actual, duration) 266 #define AWAIT(actual) \ 267 AWAIT_FOR(actual, process::TEST_AWAIT_TIMEOUT) 270 #define AWAIT_ASSERT_READY_FOR(actual, duration) \ 271 ASSERT_PRED_FORMAT2(AwaitAssertReady, actual, duration) 274 #define AWAIT_ASSERT_READY(actual) \ 275 AWAIT_ASSERT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) 278 #define AWAIT_READY_FOR(actual, duration) \ 279 AWAIT_ASSERT_READY_FOR(actual, duration) 282 #define AWAIT_READY(actual) \ 283 AWAIT_ASSERT_READY(actual) 286 #define AWAIT_EXPECT_READY_FOR(actual, duration) \ 287 EXPECT_PRED_FORMAT2(AwaitAssertReady, actual, duration) 290 #define AWAIT_EXPECT_READY(actual) \ 291 AWAIT_EXPECT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) 294 #define AWAIT_ASSERT_FAILED_FOR(actual, duration) \ 295 ASSERT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) 298 #define AWAIT_ASSERT_FAILED(actual) \ 299 AWAIT_ASSERT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 302 #define AWAIT_FAILED_FOR(actual, duration) \ 303 AWAIT_ASSERT_FAILED_FOR(actual, duration) 306 #define AWAIT_FAILED(actual) \ 307 AWAIT_ASSERT_FAILED(actual) 310 #define AWAIT_EXPECT_FAILED_FOR(actual, duration) \ 311 EXPECT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) 314 #define AWAIT_EXPECT_FAILED(actual) \ 315 AWAIT_EXPECT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 318 #define AWAIT_ASSERT_DISCARDED_FOR(actual, duration) \ 319 ASSERT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) 322 #define AWAIT_ASSERT_DISCARDED(actual) \ 323 AWAIT_ASSERT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 326 #define AWAIT_DISCARDED_FOR(actual, duration) \ 327 AWAIT_ASSERT_DISCARDED_FOR(actual, duration) 330 #define AWAIT_DISCARDED(actual) \ 331 AWAIT_ASSERT_DISCARDED(actual) 334 #define AWAIT_EXPECT_DISCARDED_FOR(actual, duration) \ 335 EXPECT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) 338 #define AWAIT_EXPECT_DISCARDED(actual) \ 339 AWAIT_EXPECT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) 342 #define AWAIT_ASSERT_EQ_FOR(expected, actual, duration) \ 343 ASSERT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) 346 #define AWAIT_ASSERT_EQ(expected, actual) \ 347 AWAIT_ASSERT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 350 #define AWAIT_EQ_FOR(expected, actual, duration) \ 351 AWAIT_ASSERT_EQ_FOR(expected, actual, duration) 354 #define AWAIT_EQ(expected, actual) \ 355 AWAIT_ASSERT_EQ(expected, actual) 358 #define AWAIT_EXPECT_EQ_FOR(expected, actual, duration) \ 359 EXPECT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) 362 #define AWAIT_EXPECT_EQ(expected, actual) \ 363 AWAIT_EXPECT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 366 #define AWAIT_ASSERT_TRUE_FOR(actual, duration) \ 367 AWAIT_ASSERT_EQ_FOR(true, actual, duration) 370 #define AWAIT_ASSERT_TRUE(actual) \ 371 AWAIT_ASSERT_EQ(true, actual) 374 #define AWAIT_TRUE_FOR(actual, duration) \ 375 AWAIT_ASSERT_TRUE_FOR(actual, duration) 378 #define AWAIT_TRUE(actual) \ 379 AWAIT_ASSERT_TRUE(actual) 382 #define AWAIT_EXPECT_TRUE_FOR(actual, duration) \ 383 AWAIT_EXPECT_EQ_FOR(true, actual, duration) 386 #define AWAIT_EXPECT_TRUE(actual) \ 387 AWAIT_EXPECT_EQ(true, actual) 390 #define AWAIT_ASSERT_FALSE_FOR(actual, duration) \ 391 AWAIT_ASSERT_EQ_FOR(false, actual, duration) 394 #define AWAIT_ASSERT_FALSE(actual) \ 395 AWAIT_ASSERT_EQ(false, actual) 398 #define AWAIT_FALSE_FOR(actual, duration) \ 399 AWAIT_ASSERT_FALSE_FOR(actual, duration) 402 #define AWAIT_FALSE(actual) \ 403 AWAIT_ASSERT_FALSE(actual) 406 #define AWAIT_EXPECT_FALSE_FOR(actual, duration) \ 407 AWAIT_EXPECT_EQ_FOR(false, actual, duration) 410 #define AWAIT_EXPECT_FALSE(actual) \ 411 AWAIT_EXPECT_EQ(false, actual) 415 const char* expectedExpr,
416 const char* actualExpr,
417 const char* durationExpr,
418 const std::string& expected,
422 const ::testing::AssertionResult result =
426 if (expected == actual->
status) {
427 return ::testing::AssertionSuccess();
429 return ::testing::AssertionFailure()
430 <<
"Value of: (" << actualExpr <<
")->status\n" 431 <<
" Actual: " << ::testing::PrintToString(actual->
status) <<
"\n" 432 <<
"Expected: " << expectedExpr <<
"\n" 433 <<
"Which is: " << ::testing::PrintToString(expected) <<
"\n" 434 <<
" Body: " << ::testing::PrintToString(actual->
body);
442 #define AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) \ 443 ASSERT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) 446 #define AWAIT_ASSERT_RESPONSE_STATUS_EQ(expected, actual) \ 447 AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR( \ 450 process::TEST_AWAIT_TIMEOUT) 453 #define AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) \ 454 EXPECT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) 457 #define AWAIT_EXPECT_RESPONSE_STATUS_EQ(expected, actual) \ 458 AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR( \ 461 process::TEST_AWAIT_TIMEOUT) 465 const char* expectedExpr,
466 const char* actualExpr,
467 const char* durationExpr,
468 const std::string& expected,
472 const ::testing::AssertionResult result =
476 if (expected == actual->
body) {
477 return ::testing::AssertionSuccess();
479 return ::testing::AssertionFailure()
480 <<
"Value of: (" << actualExpr <<
")->body\n" 481 <<
" Actual: " << ::testing::PrintToString(actual->
body) <<
"\n" 482 <<
"Expected: " << expectedExpr <<
"\n" 483 <<
"Which is: " << ::testing::PrintToString(expected);
491 #define AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) \ 492 ASSERT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) 495 #define AWAIT_ASSERT_RESPONSE_BODY_EQ(expected, actual) \ 496 AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR( \ 499 process::TEST_AWAIT_TIMEOUT) 502 #define AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) \ 503 EXPECT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) 506 #define AWAIT_EXPECT_RESPONSE_BODY_EQ(expected, actual) \ 507 AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR( \ 510 process::TEST_AWAIT_TIMEOUT) 514 const char* expectedExpr,
516 const char* actualExpr,
517 const char* durationExpr,
518 const std::string& expected,
519 const std::string& key,
523 const ::testing::AssertionResult result =
529 return ::testing::AssertionFailure()
530 <<
"Response does not contain header '" << key <<
"'";
531 }
else if (expected == value.
get()) {
532 return ::testing::AssertionSuccess();
534 return ::testing::AssertionFailure()
535 <<
"Value of: (" << actualExpr <<
")->headers[" << keyExpr <<
"]\n" 536 <<
" Actual: " << ::testing::PrintToString(value.
get()) <<
"\n" 537 <<
"Expected: " << expectedExpr <<
"\n" 538 <<
"Which is: " << ::testing::PrintToString(expected);
546 #define AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) \ 547 ASSERT_PRED_FORMAT4( \ 548 AwaitAssertResponseHeaderEq, \ 555 #define AWAIT_ASSERT_RESPONSE_HEADER_EQ(expected, key, actual) \ 556 AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR( \ 560 process::TEST_AWAIT_TIMEOUT) 563 #define AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) \ 564 EXPECT_PRED_FORMAT4( \ 565 AwaitAssertResponseHeaderEq, \ 572 #define AWAIT_EXPECT_RESPONSE_HEADER_EQ(expected, key, actual) \ 573 AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR( \ 577 process::TEST_AWAIT_TIMEOUT) 581 const char* actualExpr,
582 const char* durationExpr,
586 const ::testing::AssertionResult result =
591 if (actual->isNone()) {
592 return ::testing::AssertionFailure()
593 <<
"(" << actualExpr <<
").get() is NONE";
605 #define AWAIT_ASSERT_EXITED_FOR(expected, actual, duration) \ 606 ASSERT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) 609 #define AWAIT_ASSERT_EXITED(expected, actual) \ 610 AWAIT_ASSERT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 613 #define AWAIT_EXPECT_EXITED_FOR(expected, actual, duration) \ 614 EXPECT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) 617 #define AWAIT_EXPECT_EXITED(expected, actual) \ 618 AWAIT_EXPECT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 622 const char* expectedExpr,
623 const char* actualExpr,
624 const char* durationExpr,
629 const ::testing::AssertionResult result =
646 #define AWAIT_ASSERT_WEXITSTATUS_EQ_FOR(expected, actual, duration) \ 647 ASSERT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) 650 #define AWAIT_ASSERT_WEXITSTATUS_EQ(expected, actual) \ 651 AWAIT_ASSERT_WEXITSTATUS_EQ_FOR( \ 654 process::TEST_AWAIT_TIMEOUT) 657 #define AWAIT_EXPECT_WEXITSTATUS_EQ_FOR(expected, actual, duration) \ 658 EXPECT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) 661 #define AWAIT_EXPECT_WEXITSTATUS_EQ(expected, actual) \ 662 AWAIT_EXPECT_WEXITSTATUS_EQ_FOR( \ 665 process::TEST_AWAIT_TIMEOUT) 669 const char* expectedExpr,
670 const char* actualExpr,
671 const char* durationExpr,
676 const ::testing::AssertionResult result =
693 #define AWAIT_ASSERT_WEXITSTATUS_NE_FOR(expected, actual, duration) \ 694 ASSERT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) 697 #define AWAIT_ASSERT_WEXITSTATUS_NE(expected, actual) \ 698 AWAIT_ASSERT_EXITSTATUS_NE_FOR( \ 701 process::TEST_AWAIT_TIMEOUT) 704 #define AWAIT_EXPECT_WEXITSTATUS_NE_FOR(expected, actual, duration) \ 705 EXPECT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) 708 #define AWAIT_EXPECT_WEXITSTATUS_NE(expected, actual) \ 709 AWAIT_EXPECT_WEXITSTATUS_NE_FOR( \ 712 process::TEST_AWAIT_TIMEOUT) 718 const char* actualExpr,
719 const char* durationExpr,
723 const ::testing::AssertionResult result =
728 if (actual->isNone()) {
729 return ::testing::AssertionFailure()
730 <<
"(" << actualExpr <<
")->isNone() is true";
742 #define AWAIT_ASSERT_SIGNALED_FOR(expected, actual, duration) \ 743 ASSERT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) 746 #define AWAIT_ASSERT_SIGNALED(expected, actual) \ 747 AWAIT_ASSERT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 750 #define AWAIT_EXPECT_SIGNALED_FOR(expected, actual, duration) \ 751 EXPECT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) 754 #define AWAIT_EXPECT_SIGNALED(expected, actual) \ 755 AWAIT_EXPECT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) 759 const char* expectedExpr,
760 const char* actualExpr,
761 const char* durationExpr,
766 const ::testing::AssertionResult result =
783 #define AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, duration) \ 784 ASSERT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) 787 #define AWAIT_ASSERT_WTERMSIG_EQ(expected, actual) \ 788 AWAIT_ASSERT_WTERMSIG_EQ_FOR( \ 791 process::TEST_AWAIT_TIMEOUT) 794 #define AWAIT_EXPECT_WTERMSIG_EQ_FOR(expected, actual, duration) \ 795 EXPECT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) 798 #define AWAIT_EXPECT_WTERMSIG_EQ(expected, actual) \ 799 AWAIT_EXPECT_WTERMSIG_EQ_FOR( \ 802 process::TEST_AWAIT_TIMEOUT) 806 const char* expectedExpr,
807 const char* actualExpr,
808 const char* durationExpr,
813 const ::testing::AssertionResult result =
830 #define AWAIT_ASSERT_WTERMSIG_NE_FOR(expected, actual, duration) \ 831 ASSERT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) 834 #define AWAIT_ASSERT_WTERMSIG_NE(expected, actual) \ 835 AWAIT_ASSERT_TERMSIG_NE_FOR( \ 838 process::TEST_AWAIT_TIMEOUT 841 #define AWAIT_EXPECT_TERMSIG_NE_FOR(expected, actual, duration) \ 842 EXPECT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) 845 #define AWAIT_EXPECT_WTERMSIG_NE(expected, actual) \ 846 AWAIT_EXPECT_WTERMSIG_NE_FOR( \ 849 process::TEST_AWAIT_TIMEOUT) 856 #endif // __WINDOWS__ 858 #endif // __PROCESS_GTEST_HPP__ bool isReady() const
Definition: future.hpp:1215
inline::testing::AssertionResult AssertExitStatusNe(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:317
::testing::AssertionResult AwaitAssertDiscarded(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:164
::testing::AssertionResult AwaitAssertAbandoned(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:186
void OnTestEnd(const ::testing::TestInfo &) override
Definition: gtest.hpp:51
const T & get() const
Definition: future.hpp:1294
std::stringstream & join(std::stringstream &stream, const std::string &separator, T &&...args)
Definition: strings.hpp:307
std::string status
Definition: http.hpp:637
Try< Nothing > sleep(const Duration &duration)
Definition: os.hpp:219
bool await(const Duration &duration=Seconds(-1)) const
Definition: future.hpp:1260
Future< std::vector< Future< T > > > await(const std::vector< Future< T >> &futures)
Definition: collect.hpp:309
bool await(const process::Future< T > &future, const Duration &duration)
Definition: gtest.hpp:67
Definition: stopwatch.hpp:30
constexpr char READWRITE_HTTP_AUTHENTICATION_REALM[]
Definition: gtest.hpp:36
Definition: duration.hpp:32
bool isPending() const
Definition: future.hpp:1208
inline::testing::AssertionResult AssertExitStatusEq(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:284
inline::testing::AssertionResult AwaitAssertTermSigEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:758
#define CHECK_SOME(expression)
Definition: check.hpp:50
bool isDiscarded() const
Definition: future.hpp:1222
std::string body
Definition: http.hpp:670
Definition: duration.hpp:193
#define CHECK_ABANDONED(expression)
Definition: check.hpp:38
const Future< T > & onAny(AnyCallback &&callback) const
Definition: future.hpp:1442
Nanoseconds elapsed() const
Definition: stopwatch.hpp:54
::testing::AssertionResult Await(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:104
const Future< T > & onAbandoned(AbandonedCallback &&callback) const
Definition: future.hpp:1332
constexpr char READONLY_HTTP_AUTHENTICATION_REALM[]
Definition: gtest.hpp:35
const T & get() const &
Definition: option.hpp:119
inline::testing::AssertionResult AwaitAssertResponseBodyEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:464
inline::testing::AssertionResult AssertTermSigNe(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:415
inline::testing::AssertionResult AwaitAssertExited(const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:580
inline::testing::AssertionResult AwaitAssertExitStatusNe(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:668
#define CHECK_READY(expression)
Definition: check.hpp:29
::testing::AssertionResult AwaitAssertEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const T1 &expected, const process::Future< T2 > &actual, const Duration &duration)
Definition: gtest.hpp:218
inline::testing::AssertionResult AwaitAssertResponseHeaderEq(const char *expectedExpr, const char *keyExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const std::string &key, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:513
Definition: attributes.hpp:24
Definition: executor.hpp:48
bool await(const Duration &duration=Seconds(-1))
inline::testing::AssertionResult AssertTermSigEq(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:383
inline::testing::AssertionResult AssertSignaled(const char *actualExpr, const int actual)
Definition: gtest.hpp:351
bool isNone() const
Definition: option.hpp:117
::testing::AssertionResult AwaitAssertFailed(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:142
void start()
Definition: stopwatch.hpp:42
inline::testing::AssertionResult AwaitAssertExitStatusEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:621
const std::string & failure() const
Definition: future.hpp:1320
inline::testing::AssertionResult AwaitAssertResponseStatusEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:414
Headers headers
Definition: http.hpp:639
::testing::AssertionResult AwaitAssertReady(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:120
static bool paused()
Check whether clock is currently running.
inline::testing::AssertionResult AwaitAssertSignaled(const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:717
static ClockTestEventListener * instance()
Definition: gtest.hpp:45
inline::testing::AssertionResult AwaitAssertTermSigNe(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:805
inline::testing::AssertionResult AssertExited(const char *actualExpr, const int actual)
Definition: gtest.hpp:250
bool isFailed() const
Definition: future.hpp:1229
Definition: future.hpp:58