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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_UTILS_EXTENSION_H_
6 #define V8_TEST_INSPECTOR_PROTOCOL_UTILS_EXTENSION_H_
7
8 #include "include/v8.h"
9
10 namespace v8_inspector {
11
12 class UtilsExtension : public v8::Extension {
13 public:
14 UtilsExtension()
15 : v8::Extension("v8_inspector/utils",
16 "native function print(); native function quit();") {}
17 virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
18 v8::Isolate* isolate, v8::Local<v8::String> name);
19
20 private:
21 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
22 static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args);
23 };
24
25 } // namespace v8_inspector
26
27 #endif // V8_TEST_INSPECTOR_PROTOCOL_UTILS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698