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

Issue 8743023: Separate Authenticator and Session unittests. (Closed)

Created:
9 years ago by Sergey Ulanov
Modified:
9 years ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, Paweł Hajdan Jr., sergeyu+watch_chromium.org
Visibility:
Public.

Description

Separate Authenticator and Session unittests. Previously JingleSession unit tests were using real authenticators. Here I changed them to always use FakeAuthenticator and added new tests for channel authentication in v1_authenticator_unittest.cc . Also, to make new tests pass, fixed session-terminate message handling in JingleSession to return correct error code. BUG=105214 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114178

Patch Set 1 : - #

Total comments: 49

Patch Set 2 : - #

Patch Set 3 : merge #

Total comments: 6

Patch Set 4 : - #

Patch Set 5 : - #

Patch Set 6 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+946 lines, -704 lines) Patch
A remoting/protocol/connection_tester.h View 1 2 1 chunk +107 lines, -0 lines 0 comments Download
A remoting/protocol/connection_tester.cc View 1 2 3 4 1 chunk +251 lines, -0 lines 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A remoting/protocol/fake_authenticator.h View 1 5 1 chunk +94 lines, -0 lines 0 comments Download
A remoting/protocol/fake_authenticator.cc View 1 5 1 chunk +137 lines, -0 lines 0 comments Download
M remoting/protocol/fake_session.h View 1 2 3 4 6 chunks +11 lines, -2 lines 0 comments Download
M remoting/protocol/fake_session.cc View 1 2 3 4 6 chunks +28 lines, -9 lines 0 comments Download
M remoting/protocol/jingle_session.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 3 5 3 chunks +17 lines, -1 line 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 2 5 12 chunks +181 lines, -680 lines 0 comments Download
M remoting/protocol/message_reader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/session.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/v1_authenticator_unittest.cc View 1 2 3 4 7 chunks +102 lines, -7 lines 0 comments Download
M remoting/protocol/v1_client_channel_authenticator.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/v1_host_channel_authenticator.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M remoting/remoting.gyp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Sergey Ulanov
9 years ago (2011-11-30 20:57:57 UTC) #1
Sergey Ulanov
wez: ping
9 years ago (2011-12-03 00:31:19 UTC) #2
Sergey Ulanov
ping
9 years ago (2011-12-09 23:24:24 UTC) #3
Wez
Sorry that this took so long to get to. :( It mostly looks good, but ...
9 years ago (2011-12-09 23:42:32 UTC) #4
Sergey Ulanov
http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc File remoting/protocol/connection_tester.cc (right): http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc#newcode116 remoting/protocol/connection_tester.cc:116: if (!done_) { On 2011/12/09 23:42:33, Wez wrote: > ...
9 years ago (2011-12-12 22:52:00 UTC) #5
Sergey Ulanov
9 years ago (2011-12-12 22:52:59 UTC) #6
Wez
LGTM, but please see comments below. http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc File remoting/protocol/connection_tester.cc (right): http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc#newcode116 remoting/protocol/connection_tester.cc:116: if (!done_) { ...
9 years ago (2011-12-13 00:12:38 UTC) #7
Sergey Ulanov
http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc File remoting/protocol/connection_tester.cc (right): http://codereview.chromium.org/8743023/diff/2001/remoting/protocol/connection_tester.cc#newcode116 remoting/protocol/connection_tester.cc:116: if (!done_) { On 2011/12/13 00:12:38, Wez wrote: > ...
9 years ago (2011-12-13 02:31:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/8743023/20003
9 years ago (2011-12-13 02:39:58 UTC) #9
commit-bot: I haz the power
9 years ago (2011-12-13 03:54:41 UTC) #10
Change committed as 114178

Powered by Google App Engine
This is Rietveld 408576698