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

Unified Diff: ui/app_list/presenter/test/test_app_list_view_delegate_factory.h

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)
Patch Set: Sync and rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/presenter/test/test_app_list_view_delegate_factory.h
diff --git a/ui/app_list/presenter/test/test_app_list_view_delegate_factory.h b/ui/app_list/presenter/test/test_app_list_view_delegate_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c1a069bee24cc2787f5f1592d35910aad86b72a
--- /dev/null
+++ b/ui/app_list/presenter/test/test_app_list_view_delegate_factory.h
@@ -0,0 +1,32 @@
+// Copyright 2016 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 UI_APP_LIST_PRESENTER_TEST_TEST_APP_LIST_VIEW_DELEGATE_FACTORY_H_
+#define UI_APP_LIST_PRESENTER_TEST_TEST_APP_LIST_VIEW_DELEGATE_FACTORY_H_
+
+#include "base/macros.h"
+#include "ui/app_list/presenter/app_list_view_delegate_factory.h"
+#include "ui/app_list/test/app_list_test_view_delegate.h"
+
+namespace app_list {
+namespace test {
+
+// A concrete AppListViewDelegateFactory for unit tests.
+class TestAppListViewDelegateFactory : public AppListViewDelegateFactory {
+ public:
+ TestAppListViewDelegateFactory();
+ ~TestAppListViewDelegateFactory() override;
+
+ AppListViewDelegate* GetDelegate() override;
+
+ private:
+ AppListTestViewDelegate delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestAppListViewDelegateFactory);
+};
+
+} // namespace test
+} // namespace app_list
+
+#endif // UI_APP_LIST_PRESENTER_TEST_TEST_APP_LIST_VIEW_DELEGATE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698