diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:20:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:20:58 +0100 |
| commit | 455475575bcfa30aa60a377235bfaf2fd7bc2da7 (patch) | |
| tree | 691c69e3e25722a4fa6ffe632179243907be8240 /test/colour_test.cc | |
| parent | 1eb9ba017214698de3fd41de5291604b4fe839c5 (diff) | |
Use locked_sstream. Replace once parse_stream with parse_memory.
Diffstat (limited to 'test/colour_test.cc')
| -rw-r--r-- | test/colour_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/colour_test.cc b/test/colour_test.cc index a99b5b7e..d39c888d 100644 --- a/test/colour_test.cc +++ b/test/colour_test.cc @@ -19,10 +19,9 @@ #include "util.h" #include "exceptions.h" +#include <locked_sstream.h> #include <boost/test/unit_test.hpp> -using std::stringstream; - /** Check that dcp::Colour works */ BOOST_AUTO_TEST_CASE (colour) { @@ -58,7 +57,7 @@ BOOST_AUTO_TEST_CASE (colour) BOOST_CHECK_THROW (dcp::Colour ("001234"), dcp::XMLError); - stringstream s; + locked_stringstream s; s << c; BOOST_CHECK_EQUAL (s.str(), "(255, 0, 0)"); } |
