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

Unified Diff: test/inspector-protocol/utils-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/utils-extension.h
diff --git a/test/inspector-protocol/utils-extension.h b/test/inspector-protocol/utils-extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..93b7bc9a4181f2207ddfb857d84ce8969bc2a2b5
--- /dev/null
+++ b/test/inspector-protocol/utils-extension.h
@@ -0,0 +1,27 @@
+// 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_UTILS_EXTENSION_H_
+#define V8_TEST_INSPECTOR_PROTOCOL_UTILS_EXTENSION_H_
+
+#include "include/v8.h"
+
+namespace v8_inspector {
+
+class UtilsExtension : public v8::Extension {
+ public:
+ UtilsExtension()
+ : v8::Extension("v8_inspector/utils",
+ "native function print(); native function quit();") {}
+ virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
+ v8::Isolate* isolate, v8::Local<v8::String> name);
+
+ private:
+ static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args);
+};
+
+} // namespace v8_inspector
+
+#endif // V8_TEST_INSPECTOR_PROTOCOL_UTILS_EXTENSION_H_

Powered by Google App Engine
This is Rietveld 408576698