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

Unified Diff: chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.h

Issue 2671923002: mash: Cleanup ash shelf application menu code. (Closed)
Patch Set: Add comments Created 3 years, 10 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/ash/launcher/test/test_chrome_launcher_app_menu_item.h
diff --git a/chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.h b/chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.h
deleted file mode 100644
index ce7a462036a6a9f4b483a799dba80dd779413aac..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 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 CHROME_BROWSER_UI_ASH_LAUNCHER_TEST_TEST_CHROME_LAUNCHER_APP_MENU_ITEM_H_
-#define CHROME_BROWSER_UI_ASH_LAUNCHER_TEST_TEST_CHROME_LAUNCHER_APP_MENU_ITEM_H_
-
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
-
-#include "base/macros.h"
-
-// A simple test double for a ChromeLauncherAppMenuItem.
-class TestChromeLauncherAppMenuItem : public ChromeLauncherAppMenuItem {
- public:
- TestChromeLauncherAppMenuItem();
- ~TestChromeLauncherAppMenuItem() override;
-
- void set_is_enabled(bool is_enabled) { is_enabled_ = is_enabled; }
- int execute_count() const { return execute_count_; }
-
- // ChromeLauncherAppMenuItem:
- bool IsEnabled() const override;
- void Execute(int event_flags) override;
-
- private:
- // Stub return value for the IsEnabled() function.
- bool is_enabled_ = false;
-
- // Tracks how many times the Execute(int) function has been called.
- int execute_count_ = 0;
-
- DISALLOW_COPY_AND_ASSIGN(TestChromeLauncherAppMenuItem);
-};
-
-#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_TEST_TEST_CHROME_LAUNCHER_APP_MENU_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698