blob: 6bc5f22b0a1a657c20d0e1c87f39027746cacc5a [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 "platform/graphics/PaintInvalidationReason.h"
#include <sstream>
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
TEST(PaintInvalidationReasonTest, StreamOutput) {
{
std::stringstream string_stream;
PaintInvalidationReason reason = PaintInvalidationReason::kNone;
string_stream << reason;
EXPECT_EQ("none", string_stream.str());
}
{
std::stringstream string_stream;
PaintInvalidationReason reason = PaintInvalidationReason::kDelayedFull;
string_stream << reason;
EXPECT_EQ("delayed full", string_stream.str());
}
}
} // namespace blink