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

Unified Diff: ui/app_list/presenter/test/test_app_list_presenter.cc

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_presenter.cc
diff --git a/ui/app_list/presenter/test/test_app_list_presenter.cc b/ui/app_list/presenter/test/test_app_list_presenter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f83b1169b67eda6e458ca97f9850beea9dc80cbe
--- /dev/null
+++ b/ui/app_list/presenter/test/test_app_list_presenter.cc
@@ -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.
+
+#include "ui/app_list/presenter/test/test_app_list_presenter.h"
+
+namespace app_list {
+namespace test {
+
+TestAppListPresenter::TestAppListPresenter() : binding_(this) {}
+
+TestAppListPresenter::~TestAppListPresenter() {}
+
+app_list::mojom::AppListPresenterPtr
+TestAppListPresenter::CreateInterfacePtrAndBind() {
+ return binding_.CreateInterfacePtrAndBind();
+}
+
+void TestAppListPresenter::Show(int64_t display_id) {
+ show_count_++;
+}
+
+void TestAppListPresenter::Dismiss() {
+ dismiss_count_++;
+}
+
+void TestAppListPresenter::ToggleAppList(int64_t display_id) {
+ toggle_count_++;
+}
+
+} // namespace test
+} // namespace app_list
« no previous file with comments | « ui/app_list/presenter/test/test_app_list_presenter.h ('k') | ui/app_list/presenter/test/test_app_list_view_delegate_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698