blob: 607900043932af9f30a64e81e454ac445f9a3243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2014 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.
#ifndef MOJO_MESSAGE_PUMP_TIME_HELPER_H_
#define MOJO_MESSAGE_PUMP_TIME_HELPER_H_
#include "base/time/time.h"
#include "mojo/message_pump/mojo_message_pump_export.h"
namespace base {
class TickClock;
}
namespace mojo {
namespace common {
namespace test {
// Sets the TickClock used for getting TimeTicks::Now(). This is currently used
// by both HandleWatcher and MessagePumpMojo.
MOJO_MESSAGE_PUMP_EXPORT void SetTickClockForTest(base::TickClock* clock);
} // namespace test
namespace internal {
// Returns now. Used internally; generally not useful.
MOJO_MESSAGE_PUMP_EXPORT base::TimeTicks NowTicks();
} // namespace internal
} // namespace common
} // namespace mojo
#endif // MOJO_MESSAGE_PUMP_TIME_HELPER_H_
|