proxygen
|
#include <wangle/deprecated/rx/Observer.h>
#include <wangle/deprecated/rx/Subject.h>
#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
struct | CO |
Typedefs | |
typedef std::unique_ptr< int > | MO |
Functions | |
static std::unique_ptr< Observer< int > > | incrementer (int &counter) |
TEST (RxTest, Observe) | |
TEST (RxTest, ObserveInline) | |
TEST (RxTest, Subscription) | |
TEST (RxTest, SubscriptionMove) | |
TEST (RxTest, SubscriptionOutlivesSubject) | |
TEST (RxTest, SubscribeDuringCallback) | |
TEST (RxTest, ObserveDuringCallback) | |
TEST (RxTest, ObserveInlineDuringCallback) | |
TEST (RxTest, UnsubscribeDuringCallback) | |
TEST (RxTest, SubscribeUnsubscribeDuringCallback) | |
static MO | makeMO () |
template<typename T > | |
static ObserverPtr< T > | makeMOObserver () |
TEST (RxTest, MoveOnlyRvalue) | |
template<typename T > | |
static ObserverPtr< T > | makeCOObserver () |
TEST (RxTest, CopyOnly) | |
typedef std::unique_ptr<int> MO |
Definition at line 158 of file RxTest.cpp.
|
static |
Definition at line 23 of file RxTest.cpp.
References wangle::Observer< T >::create().
Referenced by TEST().
|
static |
Definition at line 186 of file RxTest.cpp.
References wangle::Observer< T >::create(), and T.
|
static |
Definition at line 159 of file RxTest.cpp.
Referenced by TEST().
|
static |
Definition at line 161 of file RxTest.cpp.
References wangle::Observer< T >::create(), EXPECT_EQ, and T.
TEST | ( | RxTest | , |
Observe | |||
) |
Definition at line 29 of file RxTest.cpp.
References count, EXPECT_EQ, incrementer(), wangle::Observable< T >::observe(), and wangle::Subject< T >::onNext().
TEST | ( | RxTest | , |
ObserveInline | |||
) |
Definition at line 37 of file RxTest.cpp.
References count, EXPECT_EQ, incrementer(), wangle::Observable< T >::observe(), and wangle::Subject< T >::onNext().
TEST | ( | RxTest | , |
Subscription | |||
) |
Definition at line 47 of file RxTest.cpp.
References count, EXPECT_EQ, incrementer(), wangle::Subject< T >::onNext(), s, and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
SubscriptionMove | |||
) |
Definition at line 59 of file RxTest.cpp.
References count, EXPECT_EQ, incrementer(), folly::gen::move, wangle::Subject< T >::onNext(), s, and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
SubscriptionOutlivesSubject | |||
) |
Definition at line 71 of file RxTest.cpp.
References s, and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
SubscribeDuringCallback | |||
) |
Definition at line 80 of file RxTest.cpp.
References EXPECT_EQ, incrementer(), wangle::Subject< T >::onNext(), and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
ObserveDuringCallback | |||
) |
Definition at line 96 of file RxTest.cpp.
References EXPECT_EQ, incrementer(), wangle::Observable< T >::observe(), and wangle::Subject< T >::onNext().
TEST | ( | RxTest | , |
ObserveInlineDuringCallback | |||
) |
Definition at line 109 of file RxTest.cpp.
References wangle::Observer< T >::create(), EXPECT_EQ, incrementer(), wangle::Observable< T >::observe(), and wangle::Subject< T >::onNext().
TEST | ( | RxTest | , |
UnsubscribeDuringCallback | |||
) |
Definition at line 126 of file RxTest.cpp.
References EXPECT_EQ, incrementer(), wangle::Subject< T >::onNext(), and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
SubscribeUnsubscribeDuringCallback | |||
) |
Definition at line 142 of file RxTest.cpp.
References EXPECT_EQ, incrementer(), wangle::Subject< T >::onNext(), and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
MoveOnlyRvalue | |||
) |
Definition at line 167 of file RxTest.cpp.
References makeMO(), folly::gen::move, wangle::Subject< T >::onNext(), and wangle::Observable< T >::subscribe().
TEST | ( | RxTest | , |
CopyOnly | |||
) |
Definition at line 190 of file RxTest.cpp.
References GCC61971::co, wangle::Subject< T >::onNext(), and wangle::Observable< T >::subscribe().