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

Issue 6724033: Remove authenticated_ fields from stubs. (Closed)

Created:
9 years, 9 months ago by simonmorris
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

The authenticated_ fields are moved out of stubs and into ClientSession. Messages to the stubs are dispatched via ClientSession, and the stub classes are pure virtual. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79991

Patch Set 1 #

Patch Set 2 : Tweak comment. #

Patch Set 3 : Fix .gyp file for unit tests. #

Total comments: 24

Patch Set 4 : Address reviewer's comments. #

Patch Set 5 : Tweak. #

Total comments: 14

Patch Set 6 : Sync. #

Patch Set 7 : Address reviewers' comments. #

Patch Set 8 : Remove redundant comment. #

Total comments: 2

Patch Set 9 : Address reviewer's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -328 lines) Patch
M remoting/host/chromoting_host.cc View 1 2 3 4 5 7 chunks +22 lines, -15 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +30 lines, -15 lines 0 comments Download
M remoting/host/client_session.h View 1 2 3 4 3 chunks +33 lines, -5 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 4 5 6 4 chunks +37 lines, -11 lines 0 comments Download
A remoting/host/client_session_unittest.cc View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/user_authenticator_fake.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M remoting/host/user_authenticator_fake.cc View 1 2 3 4 5 1 chunk +10 lines, -1 line 0 comments Download
M remoting/protocol/client_message_dispatcher.cc View 1 chunk +11 lines, -22 lines 0 comments Download
M remoting/protocol/client_stub.h View 2 chunks +3 lines, -23 lines 0 comments Download
D remoting/protocol/client_stub.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M remoting/protocol/connection_to_client.h View 1 2 3 3 chunks +4 lines, -15 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 1 2 3 3 chunks +7 lines, -35 lines 0 comments Download
M remoting/protocol/connection_to_client_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M remoting/protocol/host_message_dispatcher.cc View 1 2 3 4 5 6 1 chunk +16 lines, -25 lines 0 comments Download
M remoting/protocol/host_stub.h View 2 chunks +3 lines, -23 lines 0 comments Download
D remoting/protocol/host_stub.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M remoting/protocol/input_stub.h View 2 chunks +3 lines, -22 lines 0 comments Download
D remoting/protocol/input_stub.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
simonmorris
9 years, 9 months ago (2011-03-28 14:55:42 UTC) #1
Alpha Left Google
Looking very good. I have some comments about coding style and commenting. http://codereview.chromium.org/6724033/diff/3001/remoting/host/chromoting_host_unittest.cc File remoting/host/chromoting_host_unittest.cc ...
9 years, 9 months ago (2011-03-28 16:22:26 UTC) #2
simonmorris
http://codereview.chromium.org/6724033/diff/3001/remoting/host/chromoting_host_unittest.cc File remoting/host/chromoting_host_unittest.cc (right): http://codereview.chromium.org/6724033/diff/3001/remoting/host/chromoting_host_unittest.cc#newcode63 remoting/host/chromoting_host_unittest.cc:63: class DummyTask : public Task { On 2011/03/28 16:22:26, ...
9 years, 9 months ago (2011-03-29 17:07:51 UTC) #3
Alpha Left Google
LGTM.
9 years, 9 months ago (2011-03-29 18:11:06 UTC) #4
garykac
LGTM. Curiously, this looks similar to my first stab at this. I recall getting comments ...
9 years, 8 months ago (2011-03-30 20:04:03 UTC) #5
Wez
Drive-by! LGTM for what it's worth, although see comments regarding the behaviour when we see ...
9 years, 8 months ago (2011-03-30 20:24:57 UTC) #6
simonmorris
Jamie: could you check my changes to your changes to chromoting_host_unittest.cc, and the corresponding changes ...
9 years, 8 months ago (2011-03-31 11:14:00 UTC) #7
Jamie
LGTM, but see if you agree with my comments. http://codereview.chromium.org/6724033/diff/19001/remoting/host/chromoting_host_unittest.cc File remoting/host/chromoting_host_unittest.cc (right): http://codereview.chromium.org/6724033/diff/19001/remoting/host/chromoting_host_unittest.cc#newcode65 remoting/host/chromoting_host_unittest.cc:65: ...
9 years, 8 months ago (2011-03-31 11:31:25 UTC) #8
simonmorris
9 years, 8 months ago (2011-03-31 12:23:43 UTC) #9
http://codereview.chromium.org/6724033/diff/19001/remoting/host/chromoting_ho...
File remoting/host/chromoting_host_unittest.cc (right):

http://codereview.chromium.org/6724033/diff/19001/remoting/host/chromoting_ho...
remoting/host/chromoting_host_unittest.cc:65: void DummyFunction() {}
On 2011/03/31 11:31:25, Jamie wrote:
> Can we rename this |DummyDoneTask| or something that better reflects why it's
> needed? I had to look at the |BeginSessionRequest| definition to work out what
> it was for.
> 
> Nit: Other empty function in this file use two lines, not one.

Done.

Powered by Google App Engine
This is Rietveld 408576698