#include "third_party/blink/renderer/core/streams/queue_with_sizes.h"
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
Values;
TEST(QueueWithSizesTest, TotalSizeStartsAtZero) { … }
TEST(QueueWithSizesTest, EnqueueIncreasesTotalSize) { … }
TEST(QueueWithSizesTest, EnqueueAddsSize) { … }
class QueueWithSizesBadSizeTest : public ::testing::TestWithParam<double> { … };
TEST_P(QueueWithSizesBadSizeTest, BadSizeThrowsException) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(QueueWithSizesTest, DequeueReturnsSameObject) { … }
TEST(QueueWithSizesTest, DequeueSubtractsSize) { … }
TEST(QueueWithSizesTest, PeekReturnsSameObject) { … }
TEST(QueueWithSizesTest, ResetQueueClearsSize) { … }
TEST(QueueWithSizesTest, UsesDoubleArithmetic) { … }
TEST(QueueWithSizesTest, TotalSizeIsNonNegative) { … }
}
}