OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/test/base/always_on_top_window_killer_win.h" | 5 #include "chrome/test/base/always_on_top_window_killer_win.h" |
6 | 6 |
7 #include <Windows.h> | 7 #include <Windows.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 const char kDialogFoundBeforeTest[] = | 16 const char kDialogFoundBeforeTest[] = |
16 "There is an always on top dialog on the desktop. This was most likely " | 17 "There is an always on top dialog on the desktop. This was most likely " |
17 "caused by a previous test and may cause this test to fail. Trying to " | 18 "caused by a previous test and may cause this test to fail. Trying to " |
18 "close it."; | 19 "close it."; |
19 | 20 |
20 const char kDialogFoundPostTest[] = | 21 const char kDialogFoundPostTest[] = |
21 "There is an always on top dialog on the desktop after running this test. " | 22 "There is an always on top dialog on the desktop after running this test. " |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 73 } |
73 } | 74 } |
74 return kContinueIterating; | 75 return kContinueIterating; |
75 } | 76 } |
76 | 77 |
77 } // namespace | 78 } // namespace |
78 | 79 |
79 void KillAlwaysOnTopWindows(RunType run_type) { | 80 void KillAlwaysOnTopWindows(RunType run_type) { |
80 EnumWindows(AlwaysOnTopWindowProc, reinterpret_cast<LPARAM>(&run_type)); | 81 EnumWindows(AlwaysOnTopWindowProc, reinterpret_cast<LPARAM>(&run_type)); |
81 } | 82 } |
OLD | NEW |