Apache Mesos
|
#include <gtest/gtest.h>
#include <string>
#include <process/check.hpp>
#include <process/clock.hpp>
#include <process/future.hpp>
#include <process/gtest_constants.hpp>
#include <process/http.hpp>
#include <stout/duration.hpp>
#include <stout/gtest.hpp>
#include <stout/option.hpp>
#include <stout/os.hpp>
#include <stout/stopwatch.hpp>
#include <stout/strings.hpp>
Go to the source code of this file.
Classes | |
class | process::ClockTestEventListener |
Namespaces | |
process | |
process::internal | |
Macros | |
#define | AWAIT_ASSERT_ABANDONED_FOR(actual, duration) ASSERT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) |
#define | AWAIT_ASSERT_ABANDONED(actual) AWAIT_ASSERT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_EXPECT_ABANDONED_FOR(actual, duration) EXPECT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) |
#define | AWAIT_EXPECT_ABANDONED(actual) AWAIT_EXPECT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_FOR(actual, duration) ASSERT_PRED_FORMAT2(Await, actual, duration) |
#define | AWAIT(actual) AWAIT_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_READY_FOR(actual, duration) ASSERT_PRED_FORMAT2(AwaitAssertReady, actual, duration) |
#define | AWAIT_ASSERT_READY(actual) AWAIT_ASSERT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_READY_FOR(actual, duration) AWAIT_ASSERT_READY_FOR(actual, duration) |
#define | AWAIT_READY(actual) AWAIT_ASSERT_READY(actual) |
#define | AWAIT_EXPECT_READY_FOR(actual, duration) EXPECT_PRED_FORMAT2(AwaitAssertReady, actual, duration) |
#define | AWAIT_EXPECT_READY(actual) AWAIT_EXPECT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_FAILED_FOR(actual, duration) ASSERT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) |
#define | AWAIT_ASSERT_FAILED(actual) AWAIT_ASSERT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_FAILED_FOR(actual, duration) AWAIT_ASSERT_FAILED_FOR(actual, duration) |
#define | AWAIT_FAILED(actual) AWAIT_ASSERT_FAILED(actual) |
#define | AWAIT_EXPECT_FAILED_FOR(actual, duration) EXPECT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) |
#define | AWAIT_EXPECT_FAILED(actual) AWAIT_EXPECT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_DISCARDED_FOR(actual, duration) ASSERT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) |
#define | AWAIT_ASSERT_DISCARDED(actual) AWAIT_ASSERT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_DISCARDED_FOR(actual, duration) AWAIT_ASSERT_DISCARDED_FOR(actual, duration) |
#define | AWAIT_DISCARDED(actual) AWAIT_ASSERT_DISCARDED(actual) |
#define | AWAIT_EXPECT_DISCARDED_FOR(actual, duration) EXPECT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) |
#define | AWAIT_EXPECT_DISCARDED(actual) AWAIT_EXPECT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_EQ_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) |
#define | AWAIT_ASSERT_EQ(expected, actual) AWAIT_ASSERT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_EQ_FOR(expected, actual, duration) AWAIT_ASSERT_EQ_FOR(expected, actual, duration) |
#define | AWAIT_EQ(expected, actual) AWAIT_ASSERT_EQ(expected, actual) |
#define | AWAIT_EXPECT_EQ_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) |
#define | AWAIT_EXPECT_EQ(expected, actual) AWAIT_EXPECT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_TRUE_FOR(actual, duration) AWAIT_ASSERT_EQ_FOR(true, actual, duration) |
#define | AWAIT_ASSERT_TRUE(actual) AWAIT_ASSERT_EQ(true, actual) |
#define | AWAIT_TRUE_FOR(actual, duration) AWAIT_ASSERT_TRUE_FOR(actual, duration) |
#define | AWAIT_TRUE(actual) AWAIT_ASSERT_TRUE(actual) |
#define | AWAIT_EXPECT_TRUE_FOR(actual, duration) AWAIT_EXPECT_EQ_FOR(true, actual, duration) |
#define | AWAIT_EXPECT_TRUE(actual) AWAIT_EXPECT_EQ(true, actual) |
#define | AWAIT_ASSERT_FALSE_FOR(actual, duration) AWAIT_ASSERT_EQ_FOR(false, actual, duration) |
#define | AWAIT_ASSERT_FALSE(actual) AWAIT_ASSERT_EQ(false, actual) |
#define | AWAIT_FALSE_FOR(actual, duration) AWAIT_ASSERT_FALSE_FOR(actual, duration) |
#define | AWAIT_FALSE(actual) AWAIT_ASSERT_FALSE(actual) |
#define | AWAIT_EXPECT_FALSE_FOR(actual, duration) AWAIT_EXPECT_EQ_FOR(false, actual, duration) |
#define | AWAIT_EXPECT_FALSE(actual) AWAIT_EXPECT_EQ(false, actual) |
#define | AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) |
#define | AWAIT_ASSERT_RESPONSE_STATUS_EQ(expected, actual) |
#define | AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) |
#define | AWAIT_EXPECT_RESPONSE_STATUS_EQ(expected, actual) |
#define | AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) |
#define | AWAIT_ASSERT_RESPONSE_BODY_EQ(expected, actual) |
#define | AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) |
#define | AWAIT_EXPECT_RESPONSE_BODY_EQ(expected, actual) |
#define | AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) |
#define | AWAIT_ASSERT_RESPONSE_HEADER_EQ(expected, key, actual) |
#define | AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) |
#define | AWAIT_EXPECT_RESPONSE_HEADER_EQ(expected, key, actual) |
#define | AWAIT_ASSERT_EXITED_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) |
#define | AWAIT_ASSERT_EXITED(expected, actual) AWAIT_ASSERT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_EXPECT_EXITED_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) |
#define | AWAIT_EXPECT_EXITED(expected, actual) AWAIT_EXPECT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_WEXITSTATUS_EQ_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) |
#define | AWAIT_ASSERT_WEXITSTATUS_EQ(expected, actual) |
#define | AWAIT_EXPECT_WEXITSTATUS_EQ_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) |
#define | AWAIT_EXPECT_WEXITSTATUS_EQ(expected, actual) |
#define | AWAIT_ASSERT_WEXITSTATUS_NE_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) |
#define | AWAIT_ASSERT_WEXITSTATUS_NE(expected, actual) |
#define | AWAIT_EXPECT_WEXITSTATUS_NE_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) |
#define | AWAIT_EXPECT_WEXITSTATUS_NE(expected, actual) |
#define | AWAIT_ASSERT_SIGNALED_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) |
#define | AWAIT_ASSERT_SIGNALED(expected, actual) AWAIT_ASSERT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_EXPECT_SIGNALED_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) |
#define | AWAIT_EXPECT_SIGNALED(expected, actual) AWAIT_EXPECT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define | AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) |
#define | AWAIT_ASSERT_WTERMSIG_EQ(expected, actual) |
#define | AWAIT_EXPECT_WTERMSIG_EQ_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) |
#define | AWAIT_EXPECT_WTERMSIG_EQ(expected, actual) |
#define | AWAIT_ASSERT_WTERMSIG_NE_FOR(expected, actual, duration) ASSERT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) |
#define | AWAIT_ASSERT_WTERMSIG_NE(expected, actual) |
#define | AWAIT_EXPECT_TERMSIG_NE_FOR(expected, actual, duration) EXPECT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) |
#define | AWAIT_EXPECT_WTERMSIG_NE(expected, actual) |
Functions | |
template<typename T > | |
bool | process::internal::await (const process::Future< T > &future, const Duration &duration) |
template<typename T > | |
::testing::AssertionResult | Await (const char *expr, const char *, const process::Future< T > &actual, const Duration &duration) |
template<typename T > | |
::testing::AssertionResult | AwaitAssertReady (const char *expr, const char *, const process::Future< T > &actual, const Duration &duration) |
template<typename T > | |
::testing::AssertionResult | AwaitAssertFailed (const char *expr, const char *, const process::Future< T > &actual, const Duration &duration) |
template<typename T > | |
::testing::AssertionResult | AwaitAssertDiscarded (const char *expr, const char *, const process::Future< T > &actual, const Duration &duration) |
template<typename T > | |
::testing::AssertionResult | AwaitAssertAbandoned (const char *expr, const char *, const process::Future< T > &actual, const Duration &duration) |
template<typename T1 , typename T2 > | |
::testing::AssertionResult | AwaitAssertEq (const char *expectedExpr, const char *actualExpr, const char *durationExpr, const T1 &expected, const process::Future< T2 > &actual, const Duration &duration) |
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) |
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) |
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) |
inline::testing::AssertionResult | AwaitAssertExited (const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration) |
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) |
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) |
inline::testing::AssertionResult | AwaitAssertSignaled (const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration) |
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) |
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) |
Variables | |
constexpr char | process::READONLY_HTTP_AUTHENTICATION_REALM [] = "libprocess-readonly" |
constexpr char | process::READWRITE_HTTP_AUTHENTICATION_REALM [] = "libprocess-readwrite" |
#define AWAIT | ( | actual | ) | AWAIT_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_ABANDONED | ( | actual | ) | AWAIT_ASSERT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_ABANDONED_FOR | ( | actual, | |
duration | |||
) | ASSERT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) |
#define AWAIT_ASSERT_DISCARDED | ( | actual | ) | AWAIT_ASSERT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_DISCARDED_FOR | ( | actual, | |
duration | |||
) | ASSERT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) |
#define AWAIT_ASSERT_EQ | ( | expected, | |
actual | |||
) | AWAIT_ASSERT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) |
#define AWAIT_ASSERT_EXITED | ( | expected, | |
actual | |||
) | AWAIT_ASSERT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_EXITED_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) |
#define AWAIT_ASSERT_FAILED | ( | actual | ) | AWAIT_ASSERT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_FAILED_FOR | ( | actual, | |
duration | |||
) | ASSERT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) |
#define AWAIT_ASSERT_FALSE | ( | actual | ) | AWAIT_ASSERT_EQ(false, actual) |
#define AWAIT_ASSERT_FALSE_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_EQ_FOR(false, actual, duration) |
#define AWAIT_ASSERT_READY | ( | actual | ) | AWAIT_ASSERT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_READY_FOR | ( | actual, | |
duration | |||
) | ASSERT_PRED_FORMAT2(AwaitAssertReady, actual, duration) |
#define AWAIT_ASSERT_RESPONSE_BODY_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) |
#define AWAIT_ASSERT_RESPONSE_HEADER_EQ | ( | expected, | |
key, | |||
actual | |||
) |
#define AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR | ( | expected, | |
key, | |||
actual, | |||
duration | |||
) |
#define AWAIT_ASSERT_RESPONSE_STATUS_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) |
#define AWAIT_ASSERT_SIGNALED | ( | expected, | |
actual | |||
) | AWAIT_ASSERT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_ASSERT_SIGNALED_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) |
#define AWAIT_ASSERT_TRUE | ( | actual | ) | AWAIT_ASSERT_EQ(true, actual) |
#define AWAIT_ASSERT_TRUE_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_EQ_FOR(true, actual, duration) |
#define AWAIT_ASSERT_WEXITSTATUS_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_WEXITSTATUS_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) |
#define AWAIT_ASSERT_WEXITSTATUS_NE | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_WEXITSTATUS_NE_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) |
#define AWAIT_ASSERT_WTERMSIG_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_WTERMSIG_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) |
#define AWAIT_ASSERT_WTERMSIG_NE | ( | expected, | |
actual | |||
) |
#define AWAIT_ASSERT_WTERMSIG_NE_FOR | ( | expected, | |
actual, | |||
duration | |||
) | ASSERT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) |
#define AWAIT_DISCARDED | ( | actual | ) | AWAIT_ASSERT_DISCARDED(actual) |
#define AWAIT_DISCARDED_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_DISCARDED_FOR(actual, duration) |
#define AWAIT_EQ | ( | expected, | |
actual | |||
) | AWAIT_ASSERT_EQ(expected, actual) |
#define AWAIT_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | AWAIT_ASSERT_EQ_FOR(expected, actual, duration) |
#define AWAIT_EXPECT_ABANDONED | ( | actual | ) | AWAIT_EXPECT_ABANDONED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_ABANDONED_FOR | ( | actual, | |
duration | |||
) | EXPECT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration) |
#define AWAIT_EXPECT_DISCARDED | ( | actual | ) | AWAIT_EXPECT_DISCARDED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_DISCARDED_FOR | ( | actual, | |
duration | |||
) | EXPECT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration) |
#define AWAIT_EXPECT_EQ | ( | expected, | |
actual | |||
) | AWAIT_EXPECT_EQ_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration) |
#define AWAIT_EXPECT_EXITED | ( | expected, | |
actual | |||
) | AWAIT_EXPECT_EXITED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_EXITED_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration) |
#define AWAIT_EXPECT_FAILED | ( | actual | ) | AWAIT_EXPECT_FAILED_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_FAILED_FOR | ( | actual, | |
duration | |||
) | EXPECT_PRED_FORMAT2(AwaitAssertFailed, actual, duration) |
#define AWAIT_EXPECT_FALSE | ( | actual | ) | AWAIT_EXPECT_EQ(false, actual) |
#define AWAIT_EXPECT_FALSE_FOR | ( | actual, | |
duration | |||
) | AWAIT_EXPECT_EQ_FOR(false, actual, duration) |
#define AWAIT_EXPECT_READY | ( | actual | ) | AWAIT_EXPECT_READY_FOR(actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_READY_FOR | ( | actual, | |
duration | |||
) | EXPECT_PRED_FORMAT2(AwaitAssertReady, actual, duration) |
#define AWAIT_EXPECT_RESPONSE_BODY_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration) |
#define AWAIT_EXPECT_RESPONSE_HEADER_EQ | ( | expected, | |
key, | |||
actual | |||
) |
#define AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR | ( | expected, | |
key, | |||
actual, | |||
duration | |||
) |
#define AWAIT_EXPECT_RESPONSE_STATUS_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration) |
#define AWAIT_EXPECT_SIGNALED | ( | expected, | |
actual | |||
) | AWAIT_EXPECT_SIGNALED_FOR(expected, actual, process::TEST_AWAIT_TIMEOUT) |
#define AWAIT_EXPECT_SIGNALED_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration) |
#define AWAIT_EXPECT_TERMSIG_NE_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration) |
#define AWAIT_EXPECT_TRUE | ( | actual | ) | AWAIT_EXPECT_EQ(true, actual) |
#define AWAIT_EXPECT_TRUE_FOR | ( | actual, | |
duration | |||
) | AWAIT_EXPECT_EQ_FOR(true, actual, duration) |
#define AWAIT_EXPECT_WEXITSTATUS_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_EXPECT_WEXITSTATUS_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration) |
#define AWAIT_EXPECT_WEXITSTATUS_NE | ( | expected, | |
actual | |||
) |
#define AWAIT_EXPECT_WEXITSTATUS_NE_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration) |
#define AWAIT_EXPECT_WTERMSIG_EQ | ( | expected, | |
actual | |||
) |
#define AWAIT_EXPECT_WTERMSIG_EQ_FOR | ( | expected, | |
actual, | |||
duration | |||
) | EXPECT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration) |
#define AWAIT_EXPECT_WTERMSIG_NE | ( | expected, | |
actual | |||
) |
#define AWAIT_FAILED | ( | actual | ) | AWAIT_ASSERT_FAILED(actual) |
#define AWAIT_FAILED_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_FAILED_FOR(actual, duration) |
#define AWAIT_FALSE | ( | actual | ) | AWAIT_ASSERT_FALSE(actual) |
#define AWAIT_FALSE_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_FALSE_FOR(actual, duration) |
#define AWAIT_FOR | ( | actual, | |
duration | |||
) | ASSERT_PRED_FORMAT2(Await, actual, duration) |
#define AWAIT_READY | ( | actual | ) | AWAIT_ASSERT_READY(actual) |
#define AWAIT_READY_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_READY_FOR(actual, duration) |
#define AWAIT_TRUE | ( | actual | ) | AWAIT_ASSERT_TRUE(actual) |
#define AWAIT_TRUE_FOR | ( | actual, | |
duration | |||
) | AWAIT_ASSERT_TRUE_FOR(actual, duration) |
::testing::AssertionResult Await | ( | const char * | expr, |
const char * | , | ||
const process::Future< T > & | actual, | ||
const Duration & | duration | ||
) |
::testing::AssertionResult AwaitAssertAbandoned | ( | const char * | expr, |
const char * | , | ||
const process::Future< T > & | actual, | ||
const Duration & | duration | ||
) |
::testing::AssertionResult AwaitAssertDiscarded | ( | const char * | expr, |
const char * | , | ||
const process::Future< T > & | actual, | ||
const Duration & | duration | ||
) |
::testing::AssertionResult AwaitAssertEq | ( | const char * | expectedExpr, |
const char * | actualExpr, | ||
const char * | durationExpr, | ||
const T1 & | expected, | ||
const process::Future< T2 > & | actual, | ||
const Duration & | duration | ||
) |
inline ::testing::AssertionResult AwaitAssertExited | ( | const char * | actualExpr, |
const char * | durationExpr, | ||
const process::Future< Option< int >> & | actual, | ||
const Duration & | duration | ||
) |
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 | ||
) |
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 | ||
) |
::testing::AssertionResult AwaitAssertFailed | ( | const char * | expr, |
const char * | , | ||
const process::Future< T > & | actual, | ||
const Duration & | duration | ||
) |
::testing::AssertionResult AwaitAssertReady | ( | const char * | expr, |
const char * | , | ||
const process::Future< T > & | actual, | ||
const Duration & | duration | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
inline ::testing::AssertionResult AwaitAssertSignaled | ( | const char * | actualExpr, |
const char * | durationExpr, | ||
const process::Future< Option< int >> & | actual, | ||
const Duration & | duration | ||
) |
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 | ||
) |
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 | ||
) |