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

Unified Diff: test/inspector-protocol/set-timeout-extension.h

Issue 2358943002: [inspector] added inspector protocol test runner (Closed)
Patch Set: a Created 4 years, 3 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
Index: test/inspector-protocol/set-timeout-extension.h
diff --git a/test/inspector-protocol/set-timeout-extension.h b/test/inspector-protocol/set-timeout-extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7f0bbd5f2098df551871de0f7807f6889480c05
--- /dev/null
+++ b/test/inspector-protocol/set-timeout-extension.h
@@ -0,0 +1,29 @@
+// Copyright 2016 the V8 project 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 V8_TEST_INSPECTOR_PROTOCOL_SET_TIMEOUT_EXTENSION_H_
+#define V8_TEST_INSPECTOR_PROTOCOL_SET_TIMEOUT_EXTENSION_H_
+
+#include "include/v8.h"
+
+namespace v8_inspector {
+
+class V8Inspector;
+
+class SetTimeoutExtension : public v8::Extension {
+ public:
+ SetTimeoutExtension()
+ : v8::Extension("v8_inspector/setTimeout",
+ "native function setTimeout();") {}
+
+ virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
+ v8::Isolate* isolate, v8::Local<v8::String> name);
+
+ private:
+ static void SetTimeout(const v8::FunctionCallbackInfo<v8::Value>& args);
+};
+
+} // namespace v8_inspector
+
+#endif // V8_TEST_INSPECTOR_PROTOCOL_SET_TIMEOUT_EXTENSION_H_

Powered by Google App Engine
This is Rietveld 408576698