Commit 1127f22a authored by Jakob Otto's avatar Jakob Otto

Port libcaf_bb

parent 3d945be1
#define CAF_TEST_NO_MAIN
#include "caf/net/test/incubator_test.hpp"
#include "caf/fwd.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/unit_test_impl.hpp"
#include "caf/type_id.hpp"
int main(int argc, char** argv) {
caf::init_global_meta_objects<>();
return caf::test::main(argc, argv);
}
\ No newline at end of file
}
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright 2011-2020 Dominik Charousset *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/test/dsl.hpp"
CAF_BEGIN_TYPE_ID_BLOCK(bb_test, caf::first_custom_type_id)
CAF_ADD_TYPE_ID(bb_test, (caf::stream<int>) )
CAF_ADD_TYPE_ID(bb_test, (std::vector<int>) )
CAF_END_TYPE_ID_BLOCK(bb_test)
......@@ -20,6 +20,7 @@
#include "caf/bb/container_source.hpp"
#include "caf/bb/test/bb_test_type_ids.hpp"
#include "caf/test/dsl.hpp"
#include <vector>
......@@ -74,7 +75,7 @@ TESTEE(container_monitor) {
struct config : actor_system_config {
config() {
add_message_type<container_type::value_type>("value_type");
init_global_meta_objects<bb_test_type_ids>();
}
};
......
......@@ -21,10 +21,10 @@
#include "caf/bb/stream_reader.hpp"
#include "caf/policy/tokenized_integer_reader.hpp"
#include "caf/bb/test/bb_test_type_ids.hpp"
#include "caf/test/dsl.hpp"
#include <memory>
#include <sstream>
#include <string>
#include <vector>
......@@ -86,7 +86,7 @@ TESTEE(stream_monitor) {
struct config : actor_system_config {
config() {
// nop
init_global_meta_objects<bb_test_type_ids>();
}
};
......
#include "caf/fwd.hpp"
#include "caf/test/dsl.hpp"
#include "caf/type_id.hpp"
#include "caf/typed_actor.hpp"
#include <cstdint>
#include <numeric>
#include <string>
#include <utility>
// -- forward declarations for all unit test suites ----------------------------
// -- type IDs for for all unit test suites ------------------------------------
#define ADD_TYPE_ID(type) CAF_ADD_TYPE_ID(incubator_test, type)
#define ADD_ATOM(atom_name) CAF_ADD_ATOM(incubator_test, atom_name)
CAF_BEGIN_TYPE_ID_BLOCK(incubator_test, caf::first_custom_type_id)
CAF_END_TYPE_ID_BLOCK(incubator_test)
#undef ADD_TYPE_ID
#undef ADD_ATOM
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment