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

Unified Diff: chrome/test/chromedriver/command_listener_proxy.cc

Issue 353063005: [ChromeDriver] Subscribe PerformanceLogger to CommandListener interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: chrome/test/chromedriver/command_listener_proxy.cc
diff --git a/chrome/test/chromedriver/command_listener_proxy.cc b/chrome/test/chromedriver/command_listener_proxy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..916d38b8284d8030d410dd4535aca2295e100bcc
--- /dev/null
+++ b/chrome/test/chromedriver/command_listener_proxy.cc
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/chromedriver/chrome/devtools_client.h"
+#include "chrome/test/chromedriver/chrome/status.h"
+#include "chrome/test/chromedriver/command_listener_proxy.h"
+#include "chrome/test/chromedriver/logging.h"
+
+CommandListenerProxy::CommandListenerProxy(
+ CommandListener* command_listener) : command_listener_(command_listener) {
+ CHECK(command_listener_);
+}
+
+CommandListenerProxy::~CommandListenerProxy() { }
+
+Status CommandListenerProxy::BeforeCommand(const std::string& command_name) {
+ CHECK(command_listener_);
stgao 2014/06/27 16:48:24 It seems this CHECK could be removed, as we alread
johnmoore 2014/06/27 21:58:03 Done.
+ return command_listener_->BeforeCommand(command_name);
+}

Powered by Google App Engine
This is Rietveld 408576698