blob: 79a59254ba6420c5adcf8434391fb6dbf1a62acb [file] [log] [blame]
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// serial_utils_unittest:
// Unit tests for the Serial utils.
//
#include <gtest/gtest.h>
#include "libANGLE/renderer/serial_utils.h"
namespace rx
{
TEST(SerialTest, Monotonic)
{
SerialFactory factory;
Serial a = factory.generate();
Serial b = factory.generate();
EXPECT_GT(b, a);
Serial zero;
EXPECT_GT(a, zero);
EXPECT_GT(b, zero);
}
} // namespace rx