summaryrefslogtreecommitdiff
path: root/Rx/v2/test
diff options
context:
space:
mode:
authorGrigoriy Chudnov <g.chudnov@gmail.com>2016-12-30 11:44:00 +0300
committerKirk Shoop <kirk.shoop@microsoft.com>2016-12-30 08:37:24 -0800
commitcb9d89cf9c3a2f422e3dfbe2de6226cbb5f21b26 (patch)
treeedeeeddfa2ed05b69db828d687b37a7d5927fe43 /Rx/v2/test
parent4a90eb7a54c4d855401ba5379a49367371d68342 (diff)
downloadRxCpp-cb9d89cf9c3a2f422e3dfbe2de6226cbb5f21b26.tar.gz
decouple buffer_with_time from observable
Diffstat (limited to 'Rx/v2/test')
-rw-r--r--Rx/v2/test/operators/buffer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Rx/v2/test/operators/buffer.cpp b/Rx/v2/test/operators/buffer.cpp
index 2c55866..e01e12f 100644
--- a/Rx/v2/test/operators/buffer.cpp
+++ b/Rx/v2/test/operators/buffer.cpp
@@ -1,5 +1,6 @@
#include "../test.h"
#include <rxcpp/operators/rx-buffer_count.hpp>
+#include <rxcpp/operators/rx-buffer_time.hpp>
#include <rxcpp/operators/rx-take.hpp>
SCENARIO("buffer count partial window", "[buffer][operators]"){
@@ -473,9 +474,11 @@ SCENARIO("buffer with time on intervals", "[buffer_with_time][operators][long][h
auto start = sc.now() + TIME(5 UNIT);
auto period = TIME(2 UNIT);
- rx::observable<>::interval(start, period, so)
- .take(7)
- .buffer_with_time(TIME(3 UNIT), so)
+ auto bufSource = rxs::interval(start, period, so)
+ | rxo::take(7)
+ | rxo::buffer_with_time(TIME(3 UNIT), so);
+
+ bufSource
.subscribe(
[](std::vector<long> counter){
printf("on_next: ");