| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_TEST_TEST_SHELF_DELEGATE_H_ | |
| 6 #define ASH_TEST_TEST_SHELF_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "ash/shelf/shelf_delegate.h" | |
| 11 #include "base/macros.h" | |
| 12 | |
| 13 namespace ash { | |
| 14 namespace test { | |
| 15 | |
| 16 // Test implementation of ShelfDelegate. | |
| 17 class TestShelfDelegate : public ShelfDelegate { | |
| 18 public: | |
| 19 TestShelfDelegate(); | |
| 20 ~TestShelfDelegate() override; | |
| 21 | |
| 22 static TestShelfDelegate* instance() { return instance_; } | |
| 23 | |
| 24 // ShelfDelegate implementation. | |
| 25 ShelfID GetShelfIDForAppID(const std::string& app_id) override; | |
| 26 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, | |
| 27 const std::string& launch_id) override; | |
| 28 const std::string& GetAppIDForShelfID(ShelfID id) override; | |
| 29 void PinAppWithID(const std::string& app_id) override; | |
| 30 bool IsAppPinned(const std::string& app_id) override; | |
| 31 void UnpinAppWithID(const std::string& app_id) override; | |
| 32 | |
| 33 private: | |
| 34 static TestShelfDelegate* instance_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(TestShelfDelegate); | |
| 37 }; | |
| 38 | |
| 39 } // namespace test | |
| 40 } // namespace ash | |
| 41 | |
| 42 #endif // ASH_TEST_TEST_SHELF_DELEGATE_H_ | |
| OLD | NEW |