Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 764 chrome::CloseWindow(browser()); | 764 chrome::CloseWindow(browser()); |
| 765 AcceptModalDialog(); | 765 AcceptModalDialog(); |
| 766 CancelModalDialog(); | 766 CancelModalDialog(); |
| 767 cancel_browser.Wait(); | 767 cancel_browser.Wait(); |
| 768 } | 768 } |
| 769 // Try to exit application. | 769 // Try to exit application. |
| 770 { | 770 { |
| 771 content::WindowedNotificationObserver close_observer( | 771 content::WindowedNotificationObserver close_observer( |
| 772 chrome::NOTIFICATION_BROWSER_CLOSED, | 772 chrome::NOTIFICATION_BROWSER_CLOSED, |
| 773 content::Source<Browser>(browser())); | 773 content::Source<Browser>(browser())); |
| 774 chrome::IncrementKeepAliveCount(); | 774 // TODO(dgn): Was added to unflake the test: crbug.com/333554, 323847 |
|
dgn
2016/03/09 23:49:23
TODO: have a better look at this, which was added
| |
| 775 // chrome::IncrementKeepAliveCount(); | |
| 775 chrome::CloseAllBrowsers(); | 776 chrome::CloseAllBrowsers(); |
| 776 AcceptModalDialog(); | 777 AcceptModalDialog(); |
| 777 AcceptModalDialog(); | 778 AcceptModalDialog(); |
| 778 close_observer.Wait(); | 779 close_observer.Wait(); |
| 779 } | 780 } |
| 780 for (size_t i = 0; i < close_observers.size(); ++i) { | 781 for (size_t i = 0; i < close_observers.size(); ++i) { |
| 781 close_observers[i]->Wait(); | 782 close_observers[i]->Wait(); |
| 782 delete close_observers[i]; | 783 delete close_observers[i]; |
| 783 } | 784 } |
| 784 } | 785 } |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1242 | 1243 |
| 1243 SimulateTapAt(web_contents, gfx::Point(30, 60)); | 1244 SimulateTapAt(web_contents, gfx::Point(30, 60)); |
| 1244 DispatchInPageAndWait("waitForEvent", "gesturetap"); | 1245 DispatchInPageAndWait("waitForEvent", "gesturetap"); |
| 1245 | 1246 |
| 1246 DispatchAndWait("stopTimeline"); | 1247 DispatchAndWait("stopTimeline"); |
| 1247 RunTestMethod("checkInputEventsPresent", "MouseMove", "MouseDown", | 1248 RunTestMethod("checkInputEventsPresent", "MouseMove", "MouseDown", |
| 1248 "MouseWheel", "GestureTap"); | 1249 "MouseWheel", "GestureTap"); |
| 1249 | 1250 |
| 1250 CloseDevToolsWindow(); | 1251 CloseDevToolsWindow(); |
| 1251 } | 1252 } |
| OLD | NEW |