format-test.h -> gtest-extra.h

This commit is contained in:
Victor Zverovich 2014-05-02 07:23:25 -07:00
parent f912eace9e
commit f9eb0b8ba5
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
Tests of custom gtest assertions.
Tests of custom Google Test assertions.
Copyright (c) 2012-2014, Victor Zverovich
All rights reserved.
@ -25,7 +25,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "format-test.h"
#include "gtest-extra.h"
#include <stdexcept>
#include <gtest/gtest-spi.h>

View File

@ -25,8 +25,6 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "format-test.h"
#include <cctype>
#include <cfloat>
#include <climits>
@ -74,6 +72,7 @@ int open(const char *path, int oflag, int pmode) {
#endif
#include "format.h"
#include "gtest-extra.h"
#include <stdint.h>

View File

@ -1,5 +1,5 @@
/*
Formatting library tests.
Custom Google Test assertions.
Copyright (c) 2012-2014, Victor Zverovich
All rights reserved.
@ -25,6 +25,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef FMT_GTEST_EXTRA_H
#define FMT_GTEST_EXTRA_H
#include <gtest/gtest.h>
#define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \
@ -65,3 +68,5 @@
#define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \
FMT_TEST_THROW_(statement, expected_exception, \
expected_message, GTEST_NONFATAL_FAILURE_)
#endif // FMT_GTEST_EXTRA_H