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

Issue 2344393002: Add a PrinterDiscoverer fake object. (Closed)

Created:
4 years, 3 months ago by skau
Modified:
4 years, 2 months ago
Reviewers:
xdai1, Carlson
CC:
chromium-reviews, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a PrinterDiscoverer fake object. We will eventually support detecting printers using mDNS and autodetect USB devices. This will take a little while to implement. Providing a fake in the meantime since the system is behind a flag. The fake may be useful for some tests in the future. BUG=631352 Committed: https://crrev.com/28fa7dc12fc5de5c75200ce40b666c078e836087 Cr-Commit-Position: refs/heads/master@{#422641}

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments addressed #

Total comments: 4

Patch Set 3 : rebase #

Total comments: 14

Patch Set 4 : rename from detector to discoverer #

Patch Set 5 : lint #

Patch Set 6 : more comments #

Total comments: 11

Patch Set 7 : bounds #

Patch Set 8 : easier interfaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -0 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chromeos/printing/fake_printer_discoverer.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A chromeos/printing/fake_printer_discoverer.cc View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A chromeos/printing/printer_discoverer.h View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
skau
Provide a FakePrinterDetector for development and testing.
4 years, 3 months ago (2016-09-17 01:04:03 UTC) #2
xdai1
Please see the comments below. https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc File chromeos/printing/fake_printer_detector.cc (right): https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc#newcode76 chromeos/printing/fake_printer_detector.cc:76: if (clipped_end < end) ...
4 years, 3 months ago (2016-09-19 18:56:10 UTC) #3
skau
Comments addressed. PTAL. https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc File chromeos/printing/fake_printer_detector.cc (right): https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc#newcode76 chromeos/printing/fake_printer_detector.cc:76: if (clipped_end < end) { On ...
4 years, 3 months ago (2016-09-20 01:56:47 UTC) #4
xdai1
Please see my comments below. https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc File chromeos/printing/fake_printer_detector.cc (right): https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc#newcode76 chromeos/printing/fake_printer_detector.cc:76: if (clipped_end < end) ...
4 years, 3 months ago (2016-09-20 04:16:50 UTC) #5
xdai1
skau@, fyi: please refer to my CL https://codereview.chromium.org/2380753004/. I patched your CL and made some ...
4 years, 2 months ago (2016-09-29 16:58:59 UTC) #6
Carlson
Just noticed I'm a reviewer on this, sorry for the slow reply. https://codereview.chromium.org/2344393002/diff/40001/chromeos/printing/fake_printer_detector.cc File chromeos/printing/fake_printer_detector.cc ...
4 years, 2 months ago (2016-10-03 18:00:51 UTC) #7
skau
Thanks for the review. PTAL. https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc File chromeos/printing/fake_printer_detector.cc (right): https://codereview.chromium.org/2344393002/diff/1/chromeos/printing/fake_printer_detector.cc#newcode76 chromeos/printing/fake_printer_detector.cc:76: if (clipped_end < end) ...
4 years, 2 months ago (2016-10-03 22:57:27 UTC) #9
Carlson
lgtm https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc File chromeos/printing/fake_printer_discoverer.cc (right): https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc#newcode70 chromeos/printing/fake_printer_discoverer.cc:70: if (!discovery_running_ || start >= printers_.size()) For orthogonality, ...
4 years, 2 months ago (2016-10-03 23:13:23 UTC) #10
xdai1
See comments. Thanks! https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc File chromeos/printing/fake_printer_discoverer.cc (right): https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc#newcode22 chromeos/printing/fake_printer_discoverer.cc:22: return base::MakeUnique<FakePrinterDiscoverer>(); It might be better ...
4 years, 2 months ago (2016-10-03 23:34:38 UTC) #11
skau
https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc File chromeos/printing/fake_printer_discoverer.cc (right): https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc#newcode70 chromeos/printing/fake_printer_discoverer.cc:70: if (!discovery_running_ || start >= printers_.size()) On 2016/10/03 23:13:23, ...
4 years, 2 months ago (2016-10-03 23:34:48 UTC) #12
skau
Updated per xdai's comments. PTAL. https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc File chromeos/printing/fake_printer_discoverer.cc (right): https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc#newcode22 chromeos/printing/fake_printer_discoverer.cc:22: return base::MakeUnique<FakePrinterDiscoverer>(); On 2016/10/03 ...
4 years, 2 months ago (2016-10-03 23:52:30 UTC) #15
xdai1
lgtm https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc File chromeos/printing/fake_printer_discoverer.cc (right): https://codereview.chromium.org/2344393002/diff/100001/chromeos/printing/fake_printer_discoverer.cc#newcode22 chromeos/printing/fake_printer_discoverer.cc:22: return base::MakeUnique<FakePrinterDiscoverer>(); On 2016/10/03 23:52:30, skau wrote: > ...
4 years, 2 months ago (2016-10-04 00:13:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344393002/140001
4 years, 2 months ago (2016-10-04 00:15:23 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-04 00:51:53 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 00:55:19 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/28fa7dc12fc5de5c75200ce40b666c078e836087
Cr-Commit-Position: refs/heads/master@{#422641}

Powered by Google App Engine
This is Rietveld 408576698