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

Unified Diff: ash/test/test_shelf_delegate.h

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Address comment. Created 3 years, 8 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
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ash/test/test_shelf_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shelf_delegate.h
diff --git a/ash/test/test_shelf_delegate.h b/ash/test/test_shelf_delegate.h
deleted file mode 100644
index ddf15495800fc44fa865dc1ea1446a501fd8042c..0000000000000000000000000000000000000000
--- a/ash/test/test_shelf_delegate.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 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 ASH_TEST_TEST_SHELF_DELEGATE_H_
-#define ASH_TEST_TEST_SHELF_DELEGATE_H_
-
-#include <string>
-
-#include "ash/shelf/shelf_delegate.h"
-#include "base/macros.h"
-
-namespace ash {
-namespace test {
-
-// Test implementation of ShelfDelegate.
-class TestShelfDelegate : public ShelfDelegate {
- public:
- TestShelfDelegate();
- ~TestShelfDelegate() override;
-
- static TestShelfDelegate* instance() { return instance_; }
-
- // ShelfDelegate implementation.
- ShelfID GetShelfIDForAppID(const std::string& app_id) override;
- ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
- const std::string& launch_id) override;
- const std::string& GetAppIDForShelfID(ShelfID id) override;
- void PinAppWithID(const std::string& app_id) override;
- bool IsAppPinned(const std::string& app_id) override;
- void UnpinAppWithID(const std::string& app_id) override;
-
- private:
- static TestShelfDelegate* instance_;
-
- DISALLOW_COPY_AND_ASSIGN(TestShelfDelegate);
-};
-
-} // namespace test
-} // namespace ash
-
-#endif // ASH_TEST_TEST_SHELF_DELEGATE_H_
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ash/test/test_shelf_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698