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

Side by Side Diff: content/shell/browser/layout_test/layout_test_browser_main.cc

Issue 2340693003: Close all windows in test controller shutdown (Closed)
Patch Set: Move close all windows call Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/shell/browser/layout_test/layout_test_browser_main.h" 5 #include "content/shell/browser/layout_test/layout_test_browser_main.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); 139 FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
140 main_runner->Run(); 140 main_runner->Run();
141 content::Shell::CloseAllWindows(); 141 content::Shell::CloseAllWindows();
142 main_runner->Shutdown(); 142 main_runner->Shutdown();
143 return 0; 143 return 0;
144 } 144 }
145 145
146 exit_code = RunTests(main_runner); 146 exit_code = RunTests(main_runner);
147 base::RunLoop().RunUntilIdle(); 147 base::RunLoop().RunUntilIdle();
148 148
149 content::Shell::CloseAllWindows();
149 #if !defined(OS_ANDROID) 150 #if !defined(OS_ANDROID)
150 main_runner->Shutdown(); 151 main_runner->Shutdown();
151 #endif 152 #endif
152 153
153 return exit_code; 154 return exit_code;
154 } 155 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698