| Index: ui/gfx/range/range_unittest.cc
|
| diff --git a/ui/gfx/range/range_unittest.cc b/ui/gfx/range/range_unittest.cc
|
| index 71a81649ab52d3276d0d0a4358110224f5d5b64a..4ae7a67c4f1b97b690968e2af9f4e4049472bfe5 100644
|
| --- a/ui/gfx/range/range_unittest.cc
|
| +++ b/ui/gfx/range/range_unittest.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <sstream>
|
| +
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/gfx/range/range.h"
|
| #include "ui/gfx/range/range_f.h"
|
| @@ -252,3 +254,13 @@ TEST(RangeTest, RangeFConverterTest) {
|
| EXPECT_EQ(0U, range.start());
|
| EXPECT_EQ(0U, range.end());
|
| }
|
| +
|
| +TEST(RangeTest, ToString) {
|
| + gfx::Range range(4, 7);
|
| + EXPECT_EQ("{4,7}", range.ToString());
|
| +
|
| + range = gfx::Range::InvalidRange();
|
| + std::ostringstream expected;
|
| + expected << "{" << range.start() << "," << range.end() << "}";
|
| + EXPECT_EQ(expected.str(), range.ToString());
|
| +}
|
|
|