| Index: test/inspector/inspector-impl.cc
|
| diff --git a/test/inspector/inspector-impl.cc b/test/inspector/inspector-impl.cc
|
| index f1d62afbad074b2983bbef2b6722f09e4faf88d5..3b0444037277bea759357adab7a4d7656cb802a4 100644
|
| --- a/test/inspector/inspector-impl.cc
|
| +++ b/test/inspector/inspector-impl.cc
|
| @@ -138,7 +138,13 @@ v8::Local<v8::Context> InspectorClientImpl::ensureDefaultContextInGroup(int) {
|
| return context_.Get(isolate_);
|
| }
|
|
|
| +void InspectorClientImpl::setCurrentTimeMSForTest(double time) {
|
| + current_time_ = time;
|
| + current_time_set_for_test_ = true;
|
| +}
|
| +
|
| double InspectorClientImpl::currentTimeMS() {
|
| + if (current_time_set_for_test_) return current_time_;
|
| return v8::base::OS::TimeCurrentMillis();
|
| }
|
|
|
|
|