DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
// (C) Copyright Gennadiy Rozental 2001-2007. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 41369 $ // // Description : defines singleton class unit_test_log and all manipulators. // unit_test_log has output stream like interface. It's implementation is // completely hidden with pimple idiom // *************************************************************************** #ifndef BOOST_TEST_UNIT_TEST_LOG_HPP_071894GER #define BOOST_TEST_UNIT_TEST_LOG_HPP_071894GER // Boost.Test #include
#include
#include
#include
#include
#include
// Boost #include
// STL #include
// for std::ostream& #include
//____________________________________________________________________________// namespace boost { namespace unit_test { // ************************************************************************** // // ************** log manipulators ************** // // ************************************************************************** // namespace log { struct BOOST_TEST_DECL begin { begin( const_string fn, std::size_t ln ) : m_file_name( fn ) , m_line_num( ln ) {} const_string m_file_name; std::size_t m_line_num; }; struct end {}; } // namespace log // ************************************************************************** // // ************** entry_value_collector ************** // // ************************************************************************** // namespace ut_detail { class BOOST_TEST_DECL entry_value_collector { public: // Constructors entry_value_collector() : m_last( true ) {} entry_value_collector( entry_value_collector& rhs ) : m_last( true ) { rhs.m_last = false; } ~entry_value_collector(); // collection interface entry_value_collector operator<<( const_string ); private: // Data members bool m_last; }; } // namespace ut_detail // ************************************************************************** // // ************** unit_test_log ************** // // ************************************************************************** // class BOOST_TEST_DECL unit_test_log_t : public test_observer, public singleton
{ public: // test_observer interface implementation void test_start( counter_t test_cases_amount ); void test_finish(); void test_aborted(); void test_unit_start( test_unit const& ); void test_unit_finish( test_unit const&, unsigned long elapsed ); void test_unit_skipped( test_unit const& ); void test_unit_aborted( test_unit const& ); void assertion_result( bool passed ); void exception_caught( execution_exception const& ); virtual int priority() { return 1; } // log configuration methods void set_stream( std::ostream& ); void set_threshold_level( log_level ); void set_format( output_format ); void set_formatter( unit_test_log_formatter* ); // test progress logging void set_checkpoint( const_string file, std::size_t line_num, const_string msg = const_string() ); // entry logging unit_test_log_t& operator<<( log::begin const& ); // begin entry unit_test_log_t& operator<<( log::end const& ); // end entry unit_test_log_t& operator<<( log_level ); // set entry level unit_test_log_t& operator<<( const_string ); // log entry value ut_detail::entry_value_collector operator()( log_level ); // initiate entry collection private: BOOST_TEST_SINGLETON_CONS( unit_test_log_t ); }; // unit_test_log_t BOOST_TEST_SINGLETON_INST( unit_test_log ) // helper macros #define BOOST_TEST_LOG_ENTRY( ll ) \ (::boost::unit_test::unit_test_log \ << ::boost::unit_test::log::begin( BOOST_TEST_L(__FILE__), __LINE__ ))(ll) \ /**/ } // namespace unit_test } // namespace boost // ************************************************************************** // // ************** Unit test log interface helpers ************** // // ************************************************************************** // #define BOOST_TEST_MESSAGE( M ) \ BOOST_TEST_LOG_ENTRY( ::boost::unit_test::log_messages ) \ << (boost::wrap_stringstream().ref() << M).str() \ /**/ //____________________________________________________________________________// #define BOOST_TEST_PASSPOINT() \ ::boost::unit_test::unit_test_log.set_checkpoint( \ BOOST_TEST_L(__FILE__), \ (std::size_t)__LINE__ ) \ /**/ //____________________________________________________________________________// #define BOOST_TEST_CHECKPOINT( M ) \ ::boost::unit_test::unit_test_log.set_checkpoint( \ BOOST_TEST_L(__FILE__), \ (std::size_t)__LINE__, \ (boost::wrap_stringstream().ref() << M).str() ) \ /**/ //____________________________________________________________________________// #include
#endif // BOOST_TEST_UNIT_TEST_LOG_HPP_071894GER
unit_test_log.hpp
Page URL
File URL
Prev
24/28
Next
Download
( 6 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.