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

Side by Side Diff: metrics_library_mock.h

Issue 6130003: metrics: Add SendUserActionToUMA() to MetricsLibraryMock. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/metrics.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « metrics_library.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef METRICS_LIBRARY_MOCK_H_ 5 #ifndef METRICS_LIBRARY_MOCK_H_
6 #define METRICS_LIBRARY_MOCK_H_ 6 #define METRICS_LIBRARY_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "metrics_library.h" 10 #include "metrics_library.h"
11 11
12 #include <gmock/gmock.h> 12 #include <gmock/gmock.h>
13 13
14 class MetricsLibraryMock : public MetricsLibraryInterface { 14 class MetricsLibraryMock : public MetricsLibraryInterface {
15 public: 15 public:
16 MOCK_METHOD0(Init, void()); 16 MOCK_METHOD0(Init, void());
17 MOCK_METHOD5(SendToUMA, bool(const std::string& name, int sample, 17 MOCK_METHOD5(SendToUMA, bool(const std::string& name, int sample,
18 int min, int max, int nbuckets)); 18 int min, int max, int nbuckets));
19 MOCK_METHOD3(SendEnumToUMA, bool(const std::string& name, int sample, 19 MOCK_METHOD3(SendEnumToUMA, bool(const std::string& name, int sample,
20 int max)); 20 int max));
21 MOCK_METHOD1(SendUserActionToUMA, bool(const std::string& action));
21 }; 22 };
22 23
23 #endif // METRICS_LIBRARY_MOCK_H_ 24 #endif // METRICS_LIBRARY_MOCK_H_
OLDNEW
« no previous file with comments | « metrics_library.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698