url_request_throttler_test_support.cc 563 B

123456789101112131415161718192021
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "net/url_request/url_request_throttler_test_support.h"
  5. #include "net/url_request/url_request_throttler_entry.h"
  6. namespace net {
  7. TestTickClock::TestTickClock() = default;
  8. TestTickClock::TestTickClock(base::TimeTicks now) : now_ticks_(now) {}
  9. TestTickClock::~TestTickClock() = default;
  10. base::TimeTicks TestTickClock::NowTicks() const {
  11. return now_ticks_;
  12. }
  13. } // namespace net