blob: e739ada62dad65e7aee957c79caea676beee5c44 [file] [log] [blame]
// Copyright 2013 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 "net/tools/quic/quic_simple_server_session_helper.h"
#include "net/quic/test_tools/mock_random.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
TEST(QuicSimpleServerSessionHelperTest, GenerateConnectionIdForReject) {
test::MockRandom random;
QuicSimpleServerSessionHelper helper(&random);
EXPECT_EQ(random.RandUint64(), helper.GenerateConnectionIdForReject(42));
}
} // namespace net