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

Issue 2049007: Start transition the metrics library to non-static API. Use gmock in tests. (Closed)

Created:
10 years, 7 months ago by petkov
Modified:
9 years, 7 months ago
Reviewers:
kmixter1, sosa
CC:
chromium-os-reviews_chromium.org, petkov, Luigi Semenzato, sosa
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

Start transition the metrics library to non-static API. Use gmock in tests.

Patch Set 1 #

Patch Set 2 : Change per coding style. #

Patch Set 3 : Add a destructor to the interface. #

Patch Set 4 : Add missing header file. #

Total comments: 4

Patch Set 5 : Break down tests to avoid explicit metrics lib mock checkpoints. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -116 lines) Patch
M src/platform/metrics/Makefile View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/metrics/README View 1 chunk +12 lines, -7 lines 0 comments Download
M src/platform/metrics/metrics_daemon.h View 1 2 3 4 4 chunks +14 lines, -4 lines 0 comments Download
M src/platform/metrics/metrics_daemon.cc View 3 chunks +9 lines, -8 lines 0 comments Download
M src/platform/metrics/metrics_daemon_test.cc View 1 2 3 4 21 chunks +110 lines, -94 lines 0 comments Download
M src/platform/metrics/metrics_library.h View 1 2 3 chunks +21 lines, -2 lines 0 comments Download
M src/platform/metrics/metrics_library.cc View 3 chunks +13 lines, -0 lines 0 comments Download
A src/platform/metrics/metrics_library_mock.h View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
petkov
Related CL: http://codereview.chromium.org/2055013
10 years, 7 months ago (2010-05-11 19:56:20 UTC) #1
kmixter
LGTM with nits http://codereview.chromium.org/2049007/diff/6001/7004 File src/platform/metrics/metrics_daemon.h (right): http://codereview.chromium.org/2049007/diff/6001/7004#newcode118 src/platform/metrics/metrics_daemon.h:118: void Init(bool testing, MetricsLibraryInterface* metrics_lib_); you ...
10 years, 7 months ago (2010-05-12 05:15:43 UTC) #2
petkov
Thanks for the review. Comments addressed. http://codereview.chromium.org/2049007/diff/6001/7004 File src/platform/metrics/metrics_daemon.h (right): http://codereview.chromium.org/2049007/diff/6001/7004#newcode118 src/platform/metrics/metrics_daemon.h:118: void Init(bool testing, ...
10 years, 7 months ago (2010-05-12 15:05:55 UTC) #3
sosa
10 years, 7 months ago (2010-05-12 18:01:05 UTC) #4
the reworking of checkpoint lgtm (and also the rest)

Powered by Google App Engine
This is Rietveld 408576698