1// Copyright 2013 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 CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_ 6#define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_ 7 8#include "base/compiler_specific.h" 9#include "chrome/browser/ui/app_list/keep_alive_service.h" 10 11class FakeKeepAliveService : public KeepAliveService { 12 public: 13 FakeKeepAliveService(); 14 15 bool is_keeping_alive() const { return is_keeping_alive_; } 16 17 // KeepAliveService overrides. 18 virtual void EnsureKeepAlive() OVERRIDE; 19 virtual void FreeKeepAlive() OVERRIDE; 20 21 private: 22 bool is_keeping_alive_; 23}; 24 25#endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_ 26