xref: /openbmc/phosphor-logging/test/sdtest.cpp (revision 31552c05e2b7066e923389dc4bba421d0fbcf2df)
1*31552c05SPatrick Venture #include <phosphor-logging/test/sdjournal_mock.hpp>
2*31552c05SPatrick Venture 
3*31552c05SPatrick Venture namespace phosphor
4*31552c05SPatrick Venture {
5*31552c05SPatrick Venture namespace logging
6*31552c05SPatrick Venture {
7*31552c05SPatrick Venture 
TEST(LoggingSwapTest,BasicTestToEnsureItCompiles)8*31552c05SPatrick Venture TEST(LoggingSwapTest, BasicTestToEnsureItCompiles)
9*31552c05SPatrick Venture {
10*31552c05SPatrick Venture     SdJournalMock mockInstance;
11*31552c05SPatrick Venture     auto* old = SwapJouralHandler(&mockInstance);
12*31552c05SPatrick Venture     SwapJouralHandler(old);
13*31552c05SPatrick Venture }
14*31552c05SPatrick Venture 
15*31552c05SPatrick Venture } // namespace logging
16*31552c05SPatrick Venture } // namespace phosphor
17