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

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

Issue 2737603006: [inspector] added createContextGroup for tests (Closed)
Patch Set: a Created 3 years, 9 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 | « no previous file | 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 fbd950a942d1e617a768ade57761b2bba8f48f14..0ed0d9dc52b22d3005c5cb5f03d1db37b15e5fad 100644
--- a/test/inspector/inspector-impl.h
+++ b/test/inspector/inspector-impl.h
@@ -26,15 +26,19 @@ class InspectorClientImpl : public v8_inspector::V8InspectorClient {
virtual ~InspectorClientImpl();
void scheduleReconnect(v8::base::Semaphore* ready_semaphore);
+ void scheduleCreateContextGroup(v8::ExtensionConfiguration* extensions,
+ v8::base::Semaphore* ready_semaphore,
+ int* context_group_id);
static v8_inspector::V8Inspector* InspectorFromContext(
v8::Local<v8::Context> context);
static v8_inspector::V8InspectorSession* SessionFromContext(
v8::Local<v8::Context> context);
- void setCurrentTimeMSForTest(double time);
+ // context_group_id = 0 means default context group.
+ v8_inspector::V8InspectorSession* session(int context_group_id = 0);
- v8_inspector::V8InspectorSession* session() const { return session_.get(); }
+ void setCurrentTimeMSForTest(double time);
private:
// V8InspectorClient implementation.
@@ -51,14 +55,16 @@ class InspectorClientImpl : public v8_inspector::V8InspectorClient {
void connect(v8::Local<v8::Context> context);
friend class DisconnectTask;
void disconnect();
+ friend class CreateContextGroupTask;
+ int createContextGroup(v8::ExtensionConfiguration* extensions);
std::unique_ptr<v8_inspector::V8Inspector> inspector_;
- std::unique_ptr<v8_inspector::V8InspectorSession> session_;
std::unique_ptr<v8_inspector::V8Inspector::Channel> channel_;
- std::unique_ptr<v8_inspector::StringBuffer> state_;
+
+ std::map<int, std::unique_ptr<v8_inspector::V8InspectorSession>> sessions_;
+ std::map<int, std::unique_ptr<v8_inspector::StringBuffer>> states_;
v8::Isolate* isolate_;
- v8::Global<v8::Context> context_;
TaskRunner* task_runner_;
FrontendChannel* frontend_channel_;
« no previous file with comments | « no previous file | test/inspector/inspector-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698