MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / TEST

Function TEST

framework/test/gtest/BundleDeadLockTest.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <chrono>
35
36TEST(BundleDeadLock, BundleActivatorCallsStart)
37{
38 auto f = cppmicroservices::FrameworkFactory().NewFramework();
39 ASSERT_TRUE(f);
40 f.Start();
41
42 ASSERT_NO_THROW((void)cppmicroservices::testing::InstallLib(f.GetBundleContext(), "TestBundleA"));
43 auto bundle = cppmicroservices::testing::InstallLib(f.GetBundleContext(), "TestStartBundleA");
44 ASSERT_NO_THROW(bundle.Start());
45
46 f.Stop();
47 f.WaitForStop(std::chrono::milliseconds::zero());
48}
49
50TEST(BundleDeadLock, BundleActivatorCallsStop)
51{

Callers

nothing calls this directly

Calls 7

InstallLibFunction · 0.85
NewFrameworkMethod · 0.80
InstallBundlesMethod · 0.80
StartMethod · 0.45
GetBundleContextMethod · 0.45
StopMethod · 0.45
WaitForStopMethod · 0.45

Tested by

no test coverage detected