JayBeams  0.1
Another project to have fun coding.
init.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  *
4  * Initialize GMock to work with Boost.Test
5  */
6 #ifndef jb_gmock_init_hpp
7 #define jb_gmock_init_hpp
8 
9 #include <boost/test/unit_test.hpp>
10 #include <gmock/gmock.h>
11 
12 namespace jb {
13 namespace gmock {
14 
15 /// A Boost.Test global fixture to initialize GMock.
18  ::testing::GTEST_FLAG(throw_on_failure) = true;
19  ::testing::InitGoogleMock(
20  &boost::unit_test::framework::master_test_suite().argc,
21  boost::unit_test::framework::master_test_suite().argv);
22  }
24  }
25 };
27 
28 } // namespace gmock
29 } // namespace jb
30 
31 #endif // jb_gmock_init_hpp
BOOST_GLOBAL_FIXTURE(initialize_from_boost_test)
A Boost.Test global fixture to initialize GMock.
Definition: init.hpp:16
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7