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

Issue 1381493004: [net/http auth] Generalize HttpAuthHandlerMock.

Created:
5 years, 2 months ago by asanka
Modified:
5 years, 2 months ago
Reviewers:
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@http-auth-scheme-properties
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[net/http auth] Generalize HttpAuthHandlerMock. This change: * Allows HttpAuthHandlerMock to impersonate any authentication scheme. * Adds test expectations to verify HttpAuthHandler API contract invariants. * Uses scoped_ptr<> types to pass ownership of HttpAuthHandlers to HttpAuthHandlerMock::Factory. * Updates HttpAuthHandlerMock to generate RFC 7235 compliant authentication tokens. BUG=270219

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -246 lines) Patch
M net/http/http_auth_controller_unittest.cc View 1 5 chunks +25 lines, -51 lines 0 comments Download
M net/http/http_auth_handler_mock.h View 1 6 chunks +21 lines, -32 lines 0 comments Download
M net/http/http_auth_handler_mock.cc View 1 5 chunks +53 lines, -74 lines 0 comments Download
M net/http/http_auth_unittest.cc View 1 2 chunks +7 lines, -12 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 13 chunks +68 lines, -77 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Powered by Google App Engine
This is Rietveld 408576698