| Index: content/test/test_power_profiler_observer.h
|
| diff --git a/content/test/test_power_profiler_observer.h b/content/test/test_power_profiler_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a49e0eabc719ebb998d8a77f0a8e4ae632d6b2e9
|
| --- /dev/null
|
| +++ b/content/test/test_power_profiler_observer.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
|
| +#define CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
|
| +
|
| +#include "content/public/browser/power_profiler_observer.h"
|
| +
|
| +namespace content {
|
| +
|
| +class TestPowerProfilerObserver : public PowerProfilerObserver {
|
| + public:
|
| + TestPowerProfilerObserver() : valid_event_count_(0) {}
|
| + ~TestPowerProfilerObserver() {}
|
| +
|
| + virtual void OnPowerEvent(const PowerEvent&) OVERRIDE;
|
| +
|
| + virtual Resolution resolution() const OVERRIDE { return HIGH; }
|
| +
|
| + int valid_event_count() const { return valid_event_count_; }
|
| +
|
| + private:
|
| + bool IsValidEvent(const PowerEvent&);
|
| + int valid_event_count_;
|
| + DISALLOW_COPY_AND_ASSIGN(TestPowerProfilerObserver);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_TEST_TEST_POWER_PROFILER_OBSERVER_H_
|
|
|