| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/shelf/shelf_model.h" | 5 #include "ash/public/cpp/shelf_model.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/shelf/shelf_model_observer.h" | 10 #include "ash/public/cpp/shelf_model_observer.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // ShelfModelObserver implementation that tracks what message are invoked. | 18 // ShelfModelObserver implementation that tracks what message are invoked. |
| 19 class TestShelfModelObserver : public ShelfModelObserver { | 19 class TestShelfModelObserver : public ShelfModelObserver { |
| 20 public: | 20 public: |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 // Unpinning the same app id again should have no change. | 424 // Unpinning the same app id again should have no change. |
| 425 model_->UnpinAppWithID(app_id); | 425 model_->UnpinAppWithID(app_id); |
| 426 EXPECT_FALSE(model_->IsAppPinned(app_id)); | 426 EXPECT_FALSE(model_->IsAppPinned(app_id)); |
| 427 EXPECT_EQ(2, model_->item_count()); | 427 EXPECT_EQ(2, model_->item_count()); |
| 428 EXPECT_EQ(TYPE_APP, model_->items()[index].type); | 428 EXPECT_EQ(TYPE_APP, model_->items()[index].type); |
| 429 EXPECT_EQ(item.id, model_->items()[index].id); | 429 EXPECT_EQ(item.id, model_->items()[index].id); |
| 430 } | 430 } |
| 431 | 431 |
| 432 } // namespace ash | 432 } // namespace ash |
| OLD | NEW |