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

Unified Diff: chrome/browser/ui/app_list/test/app_list_service_test_api_win.cc

Issue 23072036: Adds an integration test for uninstalling app list search results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/app_list_service_test_api_win.cc
diff --git a/chrome/browser/ui/app_list/test/app_list_service_test_api_win.cc b/chrome/browser/ui/app_list/test/app_list_service_test_api_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8e3b402fdd94033557260d8ee8d7a9f2f593eabb
--- /dev/null
+++ b/chrome/browser/ui/app_list/test/app_list_service_test_api_win.cc
@@ -0,0 +1,45 @@
+// 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.
+
+#include "chrome/browser/ui/app_list/app_list_service_win.h"
+#include "chrome/browser/ui/app_list/test/app_list_service_test_api.h"
+#include "chrome/browser/ui/app_list/test/app_list_service_test_api_ash.h"
+
+namespace test {
+namespace {
+
+class AppListServiceTestApiWin : public AppListServiceTestApi {
+ public:
+ AppListServiceTestApiWin() {}
+
+ virtual app_list::AppListModel* GetAppListModel() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppListServiceTestApiWin);
+};
+
+app_list::AppListModel* AppListServiceTestApiWin::GetAppListModel() {
+ AppListServiceWin* app_list_service_win =
+ static_cast<AppListServiceWin*>(chrome::GetAppListServiceWin());
+ return app_list_service_win->GetAppListModelForTesting();
+}
+
+} // namespace
+
+// static
+scoped_ptr<AppListServiceTestApi> AppListServiceTestApi::Create(
+ chrome::HostDesktopType desktop) {
+#if defined(USE_ASH)
+ if (desktop == chrome::HOST_DESKTOP_TYPE_ASH) {
+ return scoped_ptr<AppListServiceTestApi>(
+ new AppListServiceTestApiAsh()).Pass();
+ }
+#endif // defined(USE_ASH)
+
+ DCHECK_EQ(chrome::HOST_DESKTOP_TYPE_NATIVE, desktop);
+ return scoped_ptr<AppListServiceTestApi>(
+ new AppListServiceTestApiWin()).Pass();
+}
+
+} // namespace test

Powered by Google App Engine
This is Rietveld 408576698