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

Side by Side Diff: content/test/test_power_profiler_observer.h

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
6 #define CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
7
8 #include "content/public/browser/power_profiler_observer.h"
9
10 namespace content {
11
12 class TestPowerProfilerObserver : public PowerProfilerObserver {
13 public:
14 TestPowerProfilerObserver() : valid_event_count_(0) {}
15 ~TestPowerProfilerObserver() {}
16
17 virtual void OnPowerEvent(const PowerEvent&) OVERRIDE;
18
19 virtual Resolution resolution() const OVERRIDE { return HIGH; }
20
21 int valid_event_count() const { return valid_event_count_; }
22
23 private:
24 bool IsValidEvent(const PowerEvent&);
25 int valid_event_count_;
26 DISALLOW_COPY_AND_ASSIGN(TestPowerProfilerObserver);
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698