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

Side by Side Diff: chrome/browser/process_singleton_win_unittest.cc

Issue 2098713003: Moved a bunch of win-specific files to the new win folder in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 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/browser/process_singleton.h" 5 #include "chrome/browser/process_singleton.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/process/launch.h" 18 #include "base/process/launch.h"
19 #include "base/process/process.h" 19 #include "base/process/process.h"
20 #include "base/process/process_handle.h" 20 #include "base/process/process_handle.h"
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/test/multiprocess_test.h" 23 #include "base/test/multiprocess_test.h"
24 #include "base/win/scoped_handle.h" 24 #include "base/win/scoped_handle.h"
25 #include "base/win/wrapped_window_proc.h" 25 #include "base/win/wrapped_window_proc.h"
26 #include "chrome/browser/chrome_process_finder_win.h" 26 #include "chrome/browser/win/chrome_process_finder.h"
27 #include "chrome/common/chrome_constants.h" 27 #include "chrome/common/chrome_constants.h"
28 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
29 #include "content/public/common/result_codes.h" 29 #include "content/public/common/result_codes.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "testing/multiprocess_func_list.h" 31 #include "testing/multiprocess_func_list.h"
32 32
33 namespace { 33 namespace {
34 34
35 const char kReadyEventNameFlag[] = "ready_event_name"; 35 const char kReadyEventNameFlag[] = "ready_event_name";
36 const char kContinueEventNameFlag[] = "continue_event_name"; 36 const char kContinueEventNameFlag[] = "continue_event_name";
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // visible window. 310 // visible window.
311 EXPECT_TRUE(should_kill_called()); 311 EXPECT_TRUE(should_kill_called());
312 312
313 // Verify that the hung browser has beem terminated with the 313 // Verify that the hung browser has beem terminated with the
314 // RESULT_CODE_HUNG exit code. 314 // RESULT_CODE_HUNG exit code.
315 int exit_code = 0; 315 int exit_code = 0;
316 EXPECT_TRUE( 316 EXPECT_TRUE(
317 browser_victim()->WaitForExitWithTimeout(base::TimeDelta(), &exit_code)); 317 browser_victim()->WaitForExitWithTimeout(base::TimeDelta(), &exit_code));
318 EXPECT_EQ(content::RESULT_CODE_HUNG, exit_code); 318 EXPECT_EQ(content::RESULT_CODE_HUNG, exit_code);
319 } 319 }
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_win.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698