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/common/shelf/shelf_model.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/common/shelf/shelf_model_observer.h" |
11 #include "ash/shelf/shelf_model_observer.h" | |
12 #include "base/command_line.h" | |
13 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
15 | 13 |
16 namespace ash { | 14 namespace ash { |
17 | 15 |
18 namespace { | 16 namespace { |
19 | 17 |
20 // ShelfModelObserver implementation that tracks what message are invoked. | 18 // ShelfModelObserver implementation that tracks what message are invoked. |
21 class TestShelfModelObserver : public ShelfModelObserver { | 19 class TestShelfModelObserver : public ShelfModelObserver { |
22 public: | 20 public: |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 // Now change the type of the second item and make sure that it is moving | 340 // Now change the type of the second item and make sure that it is moving |
343 // behind the shortcuts. | 341 // behind the shortcuts. |
344 item.type = TYPE_PLATFORM_APP; | 342 item.type = TYPE_PLATFORM_APP; |
345 model_->Set(app2_index, item); | 343 model_->Set(app2_index, item); |
346 | 344 |
347 // The item should have moved in front of the app launcher. | 345 // The item should have moved in front of the app launcher. |
348 EXPECT_EQ(TYPE_PLATFORM_APP, model_->items()[4].type); | 346 EXPECT_EQ(TYPE_PLATFORM_APP, model_->items()[4].type); |
349 } | 347 } |
350 | 348 |
351 } // namespace ash | 349 } // namespace ash |
OLD | NEW |