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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/wm/maximize_mode/maximize_mode_window_manager.h" 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/public/cpp/config.h" 10 #include "ash/public/cpp/config.h"
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 1601
1602 MaximizeModeWindowManager* manager = CreateMaximizeModeWindowManager(); 1602 MaximizeModeWindowManager* manager = CreateMaximizeModeWindowManager();
1603 EXPECT_FALSE(wm::GetWindowState(window.get())->IsMaximized()); 1603 EXPECT_FALSE(wm::GetWindowState(window.get())->IsMaximized());
1604 EXPECT_EQ(0, manager->GetNumberOfManagedWindows()); 1604 EXPECT_EQ(0, manager->GetNumberOfManagedWindows());
1605 } 1605 }
1606 1606
1607 namespace { 1607 namespace {
1608 1608
1609 class TestObserver : public wm::WindowStateObserver { 1609 class TestObserver : public wm::WindowStateObserver {
1610 public: 1610 public:
1611 TestObserver(){}; 1611 TestObserver() {}
1612 ~TestObserver() override{}; 1612 ~TestObserver() override {}
1613 1613
1614 // wm::WindowStateObserver: 1614 // wm::WindowStateObserver:
1615 void OnPreWindowStateTypeChange(wm::WindowState* window_state, 1615 void OnPreWindowStateTypeChange(wm::WindowState* window_state,
1616 wm::WindowStateType old_type) override { 1616 wm::WindowStateType old_type) override {
1617 pre_count_++; 1617 pre_count_++;
1618 last_old_state_ = old_type; 1618 last_old_state_ = old_type;
1619 } 1619 }
1620 1620
1621 void OnPostWindowStateTypeChange(wm::WindowState* window_state, 1621 void OnPostWindowStateTypeChange(wm::WindowState* window_state,
1622 wm::WindowStateType old_type) override { 1622 wm::WindowStateType old_type) override {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 EXPECT_EQ(1, observer.GetPostCountAndReset()); 1700 EXPECT_EQ(1, observer.GetPostCountAndReset());
1701 EXPECT_EQ(wm::WINDOW_STATE_TYPE_MINIMIZED, 1701 EXPECT_EQ(wm::WINDOW_STATE_TYPE_MINIMIZED,
1702 observer.GetLastOldStateAndReset()); 1702 observer.GetLastOldStateAndReset());
1703 1703
1704 window_state->RemoveObserver(&observer); 1704 window_state->RemoveObserver(&observer);
1705 1705
1706 DestroyMaximizeModeWindowManager(); 1706 DestroyMaximizeModeWindowManager();
1707 } 1707 }
1708 1708
1709 } // namespace ash 1709 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/window_tree_host_manager_unittest.cc ('k') | base/power_monitor/power_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698