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

Unified Diff: chrome/browser/ui/app_list/test/fake_keep_alive_service.h

Issue 24707002: Add unit tests for AppListServiceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: un-const an iterator Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/test/fake_keep_alive_service.h
diff --git a/chrome/browser/ui/app_list/test/fake_keep_alive_service.h b/chrome/browser/ui/app_list/test/fake_keep_alive_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c15b5665f86e6797321eee1dae2f4f3ddbfe8fc
--- /dev/null
+++ b/chrome/browser/ui/app_list/test/fake_keep_alive_service.h
@@ -0,0 +1,25 @@
+// Copyright 2013 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 CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_
+#define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/ui/app_list/keep_alive_service.h"
+
+class FakeKeepAliveService : public KeepAliveService {
+ public:
+ FakeKeepAliveService();
+
+ bool is_keeping_alive() const { return is_keeping_alive_; }
+
+ // KeepAliveService overrides.
+ virtual void EnsureKeepAlive() OVERRIDE;
+ virtual void FreeKeepAlive() OVERRIDE;
+
+ private:
+ bool is_keeping_alive_;
+};
+
+#endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_KEEP_ALIVE_SERVICE_H_
« no previous file with comments | « chrome/browser/ui/app_list/profile_store.h ('k') | chrome/browser/ui/app_list/test/fake_keep_alive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698