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); |
+} |