| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/layout/api/SelectionState.h" |
| 6 |
| 7 #include <sstream> |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 TEST(SelectionStateTest, StreamOutput) { |
| 13 // Just explicitly sanity check a couple of values. |
| 14 { |
| 15 std::stringstream stringStream; |
| 16 stringStream << SelectionNone; |
| 17 EXPECT_EQ("None", stringStream.str()); |
| 18 } |
| 19 { |
| 20 std::stringstream stringStream; |
| 21 stringStream << SelectionBoth; |
| 22 EXPECT_EQ("Both", stringStream.str()); |
| 23 } |
| 24 } |
| 25 |
| 26 } // namespace blink |
| OLD | NEW |