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

Issue 12208089: Changing CloudPrintURLFetcher instantiation to be more testable (Closed)

Created:
7 years, 10 months ago by Noam Samuel (WRONG ACCOUNT)
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Changing printer job handler to be more testable 1. Instead of using "new" to create cloud print URL fetchers, use protected virtual ::CreateCloudPrintURLFetcher() 2. Instead of having a private destructor, have a protected one, allowing for sub-classing (useful for testing purposes) BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181997

Patch Set 1 #

Total comments: 2

Patch Set 2 : Modified change to use static factory pattern #

Total comments: 10

Patch Set 3 : Incorporated Gene's suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -12 lines) Patch
M chrome/service/cloud_print/cloud_print_auth.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_connector.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_wipeout.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/job_status_updater.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Noam Samuel (WRONG ACCOUNT)
This change is part of an effort to add unit testing for PrinterJobHandler. It does ...
7 years, 10 months ago (2013-02-08 19:32:09 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12208089/diff/1/chrome/service/cloud_print/printer_job_handler.cc File chrome/service/cloud_print/printer_job_handler.cc (right): https://codereview.chromium.org/12208089/diff/1/chrome/service/cloud_print/printer_job_handler.cc#newcode700 chrome/service/cloud_print/printer_job_handler.cc:700: CloudPrintURLFetcher* PrinterJobHandler::CreateCloudPrintURLFetcher() { Maybe also to use static factory ...
7 years, 10 months ago (2013-02-08 22:38:56 UTC) #2
Noam Samuel (WRONG ACCOUNT)
-- Created a CloudPrintURLFetcherFactory class that can be used to change the cloud print URL ...
7 years, 10 months ago (2013-02-11 22:44:55 UTC) #3
Vitaly Buka (NO REVIEWS)
lgtm
7 years, 10 months ago (2013-02-11 22:46:52 UTC) #4
gene
https://codereview.chromium.org/12208089/diff/5001/chrome/service/cloud_print/cloud_print_url_fetcher.cc File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right): https://codereview.chromium.org/12208089/diff/5001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode38 chrome/service/cloud_print/cloud_print_url_fetcher.cc:38: void CloudPrintURLFetcher::set_factory( Does this fit on one line? https://codereview.chromium.org/12208089/diff/5001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode44 ...
7 years, 10 months ago (2013-02-11 23:34:05 UTC) #5
Noam Samuel (WRONG ACCOUNT)
Incorporated Gene's suggestions
7 years, 10 months ago (2013-02-12 00:32:09 UTC) #6
gene
lgtm
7 years, 10 months ago (2013-02-12 02:30:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12208089/7005
7 years, 10 months ago (2013-02-12 18:28:37 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 20:39:14 UTC) #9
Message was sent while issue was closed.
Change committed as 181997

Powered by Google App Engine
This is Rietveld 408576698