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

Issue 331943003: [ChromeDriver] Added CommandListener interface (Closed)

Created:
6 years, 6 months ago by johnmoore
Modified:
6 years, 3 months ago
Reviewers:
wrightt, stgao, klm
CC:
chromium-reviews, stgao
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[ChromeDriver] Added CommandListener interface Added CommandListener interface and updated Session implementation to use it. When WebDriver commands are issued, CommandListener::OnCommand is called. This is a first step toward tracing support in ChromeDriver. PerformanceLogger will need OnCommand in order to request trace logs at appropriate points (e.g. when "GetLog" command is issued). BUG=

Patch Set 1 #

Total comments: 13

Patch Set 2 : CommandListener now abstract; Session struct simplified #

Total comments: 2

Patch Set 3 : Moved PerformanceLogger to chromedriver/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -304 lines) Patch
M chrome/chrome_tests.gypi View 1 2 5 chunks +4 lines, -3 lines 0 comments Download
D chrome/test/chromedriver/chrome/performance_logger.h View 1 2 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/test/chromedriver/chrome/performance_logger.cc View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/test/chromedriver/chrome/performance_logger_unittest.cc View 1 2 1 chunk +0 lines, -190 lines 0 comments Download
A chrome/test/chromedriver/command_listener.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/commands.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/commands_unittest.cc View 1 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/logging.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/chromedriver/performance_logger.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/test/chromedriver/performance_logger.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/chromedriver/performance_logger_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/chromedriver/session.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session_unittest.cc View 1 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/util.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/util.cc View 1 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
johnmoore
The proposed design for ChromeDriver tracing support (comments welcome) is outlined in this doc: https://docs.google.com/a/google.com/document/d/1n8cISVs87uHHVW_kbX2tzHrwzhgZ5_55MlWnyBwDwTE/edit?usp=sharing ...
6 years, 6 months ago (2014-06-13 20:19:51 UTC) #1
stgao
Besides "GetLog", are there any other commands you'd like to whitelisted? https://codereview.chromium.org/331943003/diff/1/chrome/test/chromedriver/command_listener.cc File chrome/test/chromedriver/command_listener.cc (right): ...
6 years, 6 months ago (2014-06-15 23:54:41 UTC) #2
stgao
https://codereview.chromium.org/331943003/diff/1/chrome/test/chromedriver/session_unittest.cc File chrome/test/chromedriver/session_unittest.cc (right): https://codereview.chromium.org/331943003/diff/1/chrome/test/chromedriver/session_unittest.cc#newcode130 chrome/test/chromedriver/session_unittest.cc:130: MockCommandListener* listener1 = new MockCommandListener(); Memory leak: please use ...
6 years, 6 months ago (2014-06-15 23:57:38 UTC) #3
klm
Thanks Shuotao for the first round! https://codereview.chromium.org/331943003/diff/1/chrome/test/chromedriver/command_listener.cc File chrome/test/chromedriver/command_listener.cc (right): https://codereview.chromium.org/331943003/diff/1/chrome/test/chromedriver/command_listener.cc#newcode10 chrome/test/chromedriver/command_listener.cc:10: Status CommandListener::OnCommand(const std::string& ...
6 years, 6 months ago (2014-06-16 16:11:29 UTC) #4
johnmoore
Thanks Shuotao and Michael for the initial review. I'll address most of your concerns with ...
6 years, 6 months ago (2014-06-16 17:28:34 UTC) #5
johnmoore
This patch set addresses all concerns except that of the duplicate MockCommandListener code. Please see ...
6 years, 6 months ago (2014-06-16 20:49:18 UTC) #6
johnmoore
Hi all, In working on a follow-up CL to this one, I've realized that the ...
6 years, 6 months ago (2014-06-20 18:47:53 UTC) #7
stgao
Hi John, I replied your question first. Will do a detailed review afterwards. Thanks, Shuotao ...
6 years, 6 months ago (2014-06-20 22:36:49 UTC) #8
johnmoore
6 years, 6 months ago (2014-06-23 15:11:09 UTC) #9
As per Shuotao's recommendation, I have moved PerformanceLogger to
chromedriver/. Now it can properly include CommandListener, which is located in
chromedriver/ as well.

Powered by Google App Engine
This is Rietveld 408576698