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

Side by Side Diff: ash/shelf/shelf_window_watcher_unittest.cc

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_window_watcher_item_delegate.h ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_window_watcher.h" 5 #include "ash/shelf/shelf_window_watcher.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/shelf/shelf_item_types.h" 8 #include "ash/shelf/shelf_item_types.h"
9 #include "ash/shelf/shelf_model.h" 9 #include "ash/shelf/shelf_model.h"
10 #include "ash/shelf/shelf_util.h" 10 #include "ash/shelf/shelf_util.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/shell_window_ids.h" 12 #include "ash/shell_window_ids.h"
13 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
14 #include "ash/test/shell_test_api.h" 14 #include "ash/test/shell_test_api.h"
15 #include "ash/wm/window_resizer.h" 15 #include "ash/wm/window_resizer.h"
16 #include "ash/wm/window_state.h" 16 #include "ash/wm/window_state.h"
17 #include "ash/wm/window_util.h" 17 #include "ash/wm/window_util.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "ui/aura/client/aura_constants.h" 19 #include "ui/aura/client/aura_constants.h"
20 #include "ui/aura/window.h" 20 #include "ui/aura/window.h"
21 #include "ui/base/hit_test.h" 21 #include "ui/base/hit_test.h"
22 22
23 namespace ash { 23 namespace ash {
24 24
25 class ShelfWindowWatcherTest : public test::AshTestBase { 25 class ShelfWindowWatcherTest : public test::AshTestBase {
26 public: 26 public:
27 ShelfWindowWatcherTest() : model_(NULL) {} 27 ShelfWindowWatcherTest() : model_(NULL) {}
28 virtual ~ShelfWindowWatcherTest() {} 28 virtual ~ShelfWindowWatcherTest() {}
29 29
30 virtual void SetUp() OVERRIDE { 30 virtual void SetUp() override {
31 test::AshTestBase::SetUp(); 31 test::AshTestBase::SetUp();
32 model_ = test::ShellTestApi(Shell::GetInstance()).shelf_model(); 32 model_ = test::ShellTestApi(Shell::GetInstance()).shelf_model();
33 } 33 }
34 34
35 virtual void TearDown() OVERRIDE { 35 virtual void TearDown() override {
36 model_ = NULL; 36 model_ = NULL;
37 test::AshTestBase::TearDown(); 37 test::AshTestBase::TearDown();
38 } 38 }
39 39
40 ShelfID CreateShelfItem(aura::Window* window) { 40 ShelfID CreateShelfItem(aura::Window* window) {
41 ShelfID id = model_->next_id(); 41 ShelfID id = model_->next_id();
42 ShelfItemDetails item_details; 42 ShelfItemDetails item_details;
43 item_details.type = TYPE_PLATFORM_APP; 43 item_details.type = TYPE_PLATFORM_APP;
44 SetShelfItemDetailsForWindow(window, item_details); 44 SetShelfItemDetailsForWindow(window, item_details);
45 return id; 45 return id;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // container before fininshing the dragging. 279 // container before fininshing the dragging.
280 EXPECT_TRUE(wm::GetWindowState(window.get())->is_dragged()); 280 EXPECT_TRUE(wm::GetWindowState(window.get())->is_dragged());
281 new_parent->AddChild(window.get()); 281 new_parent->AddChild(window.get());
282 EXPECT_EQ(1, model_->item_count()); 282 EXPECT_EQ(1, model_->item_count());
283 } 283 }
284 EXPECT_FALSE(wm::GetWindowState(window.get())->is_dragged()); 284 EXPECT_FALSE(wm::GetWindowState(window.get())->is_dragged());
285 EXPECT_EQ(1, model_->item_count()); 285 EXPECT_EQ(1, model_->item_count());
286 } 286 }
287 287
288 } // namespace ash 288 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_window_watcher_item_delegate.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698