extension_throttle_test_support.cc 504 B

12345678910111213141516171819
  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 "extensions/renderer/extension_throttle_test_support.h"
  5. namespace extensions {
  6. TestTickClock::TestTickClock() {}
  7. TestTickClock::TestTickClock(base::TimeTicks now) : now_ticks_(now) {}
  8. TestTickClock::~TestTickClock() {}
  9. base::TimeTicks TestTickClock::NowTicks() const {
  10. return now_ticks_;
  11. }
  12. } // namespace extensions