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

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: Fix test name. Created 4 years 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..fdae13b1aced09a3de548a17a8bc5e737785512d
--- /dev/null
+++ b/ui/app_list/presenter/test/test_app_list_presenter.cc
@@ -0,0 +1,30 @@
+// 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 {
+
+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 app_list

Powered by Google App Engine
This is Rietveld 408576698