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_ |