17 #include <gtest/gtest.h> 27 installers_.insert({input_type, setup_fun});
31 TEST(StreamSubscriptionInstallerSuite, streamSubscriptionInstallerTest)
37 std::string(
"stream_name"), 10,
38 std::string(
"rekognition_topic_name"), std::string(
"rekognition_data_stream")
43 auto status = test_subject.
Install(incomplete_descriptor);
46 incomplete_descriptor = descriptor;
48 status = test_subject.
Install(incomplete_descriptor);
51 status = test_subject.
Install(descriptor);
54 bool setup_called =
false;
59 test_subject.
PutInstaller(descriptor.input_type, setup_fun);
60 status = test_subject.
Install(descriptor);
62 EXPECT_TRUE(setup_called);
65 int main(
int argc,
char ** argv)
67 testing::InitGoogleTest(&argc, argv);
68 return RUN_ALL_TESTS();
void Uninstall(const std::string &topic_name) override
int main(int argc, char **argv)
std::function< bool(const StreamSubscriptionDescriptor &descriptor)> SubscriberSetupFn
TEST(StreamSubscriptionInstallerSuite, streamSubscriptionInstallerTest)
virtual KinesisManagerStatus Install(const StreamSubscriptionDescriptor &descriptor) const
int KinesisStreamInputType
void PutInstaller(KinesisStreamInputType input_type, const SubscriberSetupFn &setup_fun)