blob: 356ac6c788071a3a5282681d39dd04f34c2e5b7b [file] [log] [blame]
// Copyright (c) 2012 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/quic/quic_chromium_connection_helper.h"
#include "net/quic/test_tools/mock_clock.h"
#include "net/quic/test_tools/mock_random.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace test {
namespace {
class QuicChromiumConnectionHelperTest : public ::testing::Test {
protected:
QuicChromiumConnectionHelperTest() : helper_(&clock_, &random_generator_) {}
QuicChromiumConnectionHelper helper_;
MockClock clock_;
MockRandom random_generator_;
};
TEST_F(QuicChromiumConnectionHelperTest, GetClock) {
EXPECT_EQ(&clock_, helper_.GetClock());
}
TEST_F(QuicChromiumConnectionHelperTest, GetRandomGenerator) {
EXPECT_EQ(&random_generator_, helper_.GetRandomGenerator());
}
} // namespace
} // namespace test
} // namespace net