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

Unified Diff: content/shell/renderer/webkit_test_runner.h

Issue 478483005: Add IPC benchmarking API to Blink TestRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 4 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: content/shell/renderer/webkit_test_runner.h
diff --git a/content/shell/renderer/webkit_test_runner.h b/content/shell/renderer/webkit_test_runner.h
index 94fe374a763bee2e9b56d131b67df5e592dbb092..4423ac5a187db2f8f183fe0e2739e26c7474f745 100644
--- a/content/shell/renderer/webkit_test_runner.h
+++ b/content/shell/renderer/webkit_test_runner.h
@@ -30,6 +30,7 @@ struct WebRect;
namespace content {
+class IPCEcho;
class LeakDetector;
class WebTestProxyBase;
struct LeakDetectionResult;
@@ -114,6 +115,9 @@ class WebKitTestRunner : public RenderViewObserver,
const std::string& frame_name) OVERRIDE;
virtual bool allowExternalPages() OVERRIDE;
virtual std::string dumpHistoryForWindow(WebTestProxyBase* proxy) OVERRIDE;
+ virtual void requestEcho(int id, int size) OVERRIDE;
+ virtual int lastEchoId() OVERRIDE;
+ virtual int lastEchoSize() OVERRIDE;
void Reset();
@@ -124,6 +128,7 @@ class WebKitTestRunner : public RenderViewObserver,
private:
// Message handlers.
+ void OnEchoPong(int id, const std::string& body);
void OnSetTestConfiguration(const ShellTestConfiguration& params);
void OnSessionHistory(
const std::vector<int>& routing_ids,
@@ -156,6 +161,7 @@ class WebKitTestRunner : public RenderViewObserver,
bool focus_on_next_commit_;
scoped_ptr<LeakDetector> leak_detector_;
+ scoped_ptr<IPCEcho> ipc_echo_;
bool needs_leak_detector_;
DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);

Powered by Google App Engine
This is Rietveld 408576698