blob: a2320887b00aaab355c7487926881b1fb6d42fec [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/layout/api/selection_state.h"
#include <sstream>
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
TEST(SelectionStateTest, StreamOutput) {
// Just explicitly sanity check a couple of values.
{
std::stringstream string_stream;
string_stream << SelectionState::kNone;
EXPECT_EQ("None", string_stream.str());
}
{
std::stringstream string_stream;
string_stream << SelectionState::kStartAndEnd;
EXPECT_EQ("StartAndEnd", string_stream.str());
}
}
} // namespace blink