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

Issue 12248009: Created unit test for PrinterJobHandler (Closed)

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

Description

Created unit test for PrinterJobHandler Created file printer_job_handler_unittest.cc containing unit test for PrinterJobHandler and fixtures that will allow the building of more sophisticated unit tests in the future. Currently, the test only tests end-to-end printing of a single job with no errors, but facilities exist in the unit test code to write more sophisticated tests in the future. BUG=176361 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183376

Patch Set 1 : Added changes made to the build files #

Patch Set 2 : Fixing problems with previous patch set #

Patch Set 3 : Adding namespace close comments and newline before EOF #

Total comments: 16

Patch Set 4 : #

Total comments: 22

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Patch Set 9 : Updated to latest version of FakeURLFetcher and Fixed for CLANG compilation #

Total comments: 6

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -0 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/service/cloud_print/printer_job_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +613 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Noam Samuel (WRONG ACCOUNT)
7 years, 10 months ago (2013-02-12 02:05:32 UTC) #1
Noam Samuel (WRONG ACCOUNT)
Whoops, looks like this patch set needs more work on fixing lint errors (and a ...
7 years, 10 months ago (2013-02-12 02:12:39 UTC) #2
Noam Samuel (WRONG ACCOUNT)
Whoops, looks like this patch set needs more work on fixing lint errors (and a ...
7 years, 10 months ago (2013-02-12 02:12:39 UTC) #3
Noam Samuel (WRONG ACCOUNT)
OK, I fixed the lint issues with the code. This delta is ready to be ...
7 years, 10 months ago (2013-02-12 19:07:13 UTC) #4
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi#newcode1605 chrome/chrome_tests_unit.gypi:1605: 'service/cloud_print/printer_job_handler_unittest_constants.h', Why do you need separate constants file? https://codereview.chromium.org/12248009/diff/3011/chrome/service/cloud_print/printer_job_handler_unittest_constants.h ...
7 years, 10 months ago (2013-02-12 21:45:15 UTC) #5
Noam Samuel (WRONG ACCOUNT)
https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi#newcode1605 chrome/chrome_tests_unit.gypi:1605: 'service/cloud_print/printer_job_handler_unittest_constants.h', On 2013/02/12 21:45:15, Vitaly Buka wrote: > Why ...
7 years, 10 months ago (2013-02-12 21:53:17 UTC) #6
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12248009/diff/3011/chrome/service/cloud_print/printer_job_handler_unittest.cc File chrome/service/cloud_print/printer_job_handler_unittest.cc (right): https://codereview.chromium.org/12248009/diff/3011/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode211 chrome/service/cloud_print/printer_job_handler_unittest.cc:211: scoped_refptr<TestURLFetcherCallback > url_callback_; no need space before > https://codereview.chromium.org/12248009/diff/3011/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode254 ...
7 years, 10 months ago (2013-02-12 21:57:08 UTC) #7
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi#newcode1605 chrome/chrome_tests_unit.gypi:1605: 'service/cloud_print/printer_job_handler_unittest_constants.h', usually we don't do that for unit tests. ...
7 years, 10 months ago (2013-02-12 22:00:22 UTC) #8
gene
Do you really need consts in a separate file? Do you plan using them is ...
7 years, 10 months ago (2013-02-12 22:06:18 UTC) #9
Noam Samuel (WRONG ACCOUNT)
https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/12248009/diff/3011/chrome/chrome_tests_unit.gypi#newcode1605 chrome/chrome_tests_unit.gypi:1605: 'service/cloud_print/printer_job_handler_unittest_constants.h', On 2013/02/12 22:00:22, Vitaly Buka wrote: > usually ...
7 years, 10 months ago (2013-02-12 22:50:18 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12248009/diff/4006/chrome/service/cloud_print/printer_job_handler_unittest.cc File chrome/service/cloud_print/printer_job_handler_unittest.cc (right): https://codereview.chromium.org/12248009/diff/4006/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode203 chrome/service/cloud_print/printer_job_handler_unittest.cc:203: : public CloudPrintURLFetcherFactory { http://www.corp.google.com/eng/doc/cppguide.xml?showone=Interfaces#Interfaces Please fix CloudPrintURLFetcherFactory, it ...
7 years, 10 months ago (2013-02-12 23:53:26 UTC) #11
Noam Samuel (WRONG ACCOUNT)
https://codereview.chromium.org/12248009/diff/4006/chrome/service/cloud_print/printer_job_handler_unittest.cc File chrome/service/cloud_print/printer_job_handler_unittest.cc (right): https://codereview.chromium.org/12248009/diff/4006/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode203 chrome/service/cloud_print/printer_job_handler_unittest.cc:203: : public CloudPrintURLFetcherFactory { 1. Will submit interface fix ...
7 years, 10 months ago (2013-02-13 01:11:45 UTC) #12
Vitaly Buka (NO REVIEWS)
lgtm gene, do you have anything to add?
7 years, 10 months ago (2013-02-13 01:32:04 UTC) #13
gene
lgtm Could you please add empty virtual destructor to CloudPrintURLFetcherFactory? I was wrong asking you ...
7 years, 10 months ago (2013-02-13 03:43:59 UTC) #14
Noam Samuel (WRONG ACCOUNT)
I submitted the virtual destructor for CloudPrintURLFetcherFactory as a separate CL at https://codereview.chromium.org/12230020/ https://codereview.chromium.org/12248009/diff/10009/chrome/service/cloud_print/printer_job_handler_unittest.cc File ...
7 years, 10 months ago (2013-02-13 18:49:58 UTC) #15
Vitaly Buka (NO REVIEWS)
lgtm
7 years, 10 months ago (2013-02-13 18:51:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/17001
7 years, 10 months ago (2013-02-13 18:53:41 UTC) #17
Noam Samuel (WRONG ACCOUNT)
Hey, sorry to re-open this review, but two issues arose with the CL as it ...
7 years, 10 months ago (2013-02-14 01:00:32 UTC) #18
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/12248009/diff/22002/chrome/service/cloud_print/printer_job_handler_unittest.cc File chrome/service/cloud_print/printer_job_handler_unittest.cc (right): https://codereview.chromium.org/12248009/diff/22002/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode227 chrome/service/cloud_print/printer_job_handler_unittest.cc:227: net::FakeURLFetcher* fetcher = new net::FakeURLFetcher(url, d, put new() result ...
7 years, 10 months ago (2013-02-14 01:25:27 UTC) #19
Noam Samuel (WRONG ACCOUNT)
https://codereview.chromium.org/12248009/diff/22002/chrome/service/cloud_print/printer_job_handler_unittest.cc File chrome/service/cloud_print/printer_job_handler_unittest.cc (right): https://codereview.chromium.org/12248009/diff/22002/chrome/service/cloud_print/printer_job_handler_unittest.cc#newcode227 chrome/service/cloud_print/printer_job_handler_unittest.cc:227: net::FakeURLFetcher* fetcher = new net::FakeURLFetcher(url, d, On 2013/02/14 01:25:27, ...
7 years, 10 months ago (2013-02-14 18:30:39 UTC) #20
Vitaly Buka (NO REVIEWS)
lgtm
7 years, 10 months ago (2013-02-15 21:21:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/27001
7 years, 10 months ago (2013-02-15 21:30:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/29005
7 years, 10 months ago (2013-02-19 18:14:38 UTC) #23
Noam Samuel (WRONG ACCOUNT)
On 2013/02/19 18:14:38, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 10 months ago (2013-02-19 19:06:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/46003
7 years, 10 months ago (2013-02-19 19:06:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/42003
7 years, 10 months ago (2013-02-19 22:36:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@google.com/12248009/42003
7 years, 10 months ago (2013-02-20 00:48:33 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-20 02:25:34 UTC) #28
Message was sent while issue was closed.
Change committed as 183376

Powered by Google App Engine
This is Rietveld 408576698