Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1520)

Unified Diff: test/inspector/inspector-impl.h

Issue 2631553003: [inspector] console.timeEnd formats ms in the same way as JS formats double (Closed)
Patch Set: fixed protocol-works-with-different-locale test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/v8-console.cc ('k') | test/inspector/inspector-impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/inspector-impl.h
diff --git a/test/inspector/inspector-impl.h b/test/inspector/inspector-impl.h
index f94bef159998b73d320aa8904223fddd0c735b16..e18f6d5e1a6f137dac0f878854450ff4e7150528 100644
--- a/test/inspector/inspector-impl.h
+++ b/test/inspector/inspector-impl.h
@@ -28,6 +28,8 @@ class InspectorClientImpl : public v8_inspector::V8InspectorClient {
static v8_inspector::V8Inspector* InspectorFromContext(
v8::Local<v8::Context> context);
+ void setCurrentTimeMSForTest(double time);
+
private:
// V8InspectorClient implementation.
v8::Local<v8::Context> ensureDefaultContextInGroup(
@@ -54,6 +56,9 @@ class InspectorClientImpl : public v8_inspector::V8InspectorClient {
TaskRunner* task_runner_;
FrontendChannel* frontend_channel_;
+ bool current_time_set_for_test_ = false;
+ double current_time_ = 0.0;
+
DISALLOW_COPY_AND_ASSIGN(InspectorClientImpl);
};
« no previous file with comments | « src/inspector/v8-console.cc ('k') | test/inspector/inspector-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698