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

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

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 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 (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 // This test validates that the ProcessSingleton class properly makes sure 5 // This test validates that the ProcessSingleton class properly makes sure
6 // that there is only one main browser process. 6 // that there is only one main browser process.
7 // 7 //
8 // It is currently compiled and run on Windows and Posix(non-Mac) platforms. 8 // It is currently compiled and run on Windows and Posix(non-Mac) platforms.
9 // Mac uses system services and ProcessSingletonMac is a noop. (Maybe it still 9 // Mac uses system services and ProcessSingletonMac is a noop. (Maybe it still
10 // makes sense to test that the system services are giving the behavior we 10 // makes sense to test that the system services are giving the behavior we
11 // want?) 11 // want?)
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/files/scoped_temp_dir.h" 18 #include "base/files/scoped_temp_dir.h"
19 #include "base/location.h" 19 #include "base/location.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/ref_counted.h" 21 #include "base/memory/ref_counted.h"
22 #include "base/memory/scoped_ptr.h"
22 #include "base/path_service.h" 23 #include "base/path_service.h"
23 #include "base/process/launch.h" 24 #include "base/process/launch.h"
24 #include "base/process/process.h" 25 #include "base/process/process.h"
25 #include "base/process/process_iterator.h" 26 #include "base/process/process_iterator.h"
26 #include "base/single_thread_task_runner.h" 27 #include "base/single_thread_task_runner.h"
27 #include "base/synchronization/waitable_event.h" 28 #include "base/synchronization/waitable_event.h"
28 #include "base/test/test_timeouts.h" 29 #include "base/test/test_timeouts.h"
29 #include "base/threading/thread.h" 30 #include "base/threading/thread.h"
30 #include "build/build_config.h" 31 #include "build/build_config.h"
31 #include "chrome/common/chrome_constants.h" 32 #include "chrome/common/chrome_constants.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // "There can be only one!" :-) 314 // "There can be only one!" :-)
314 ASSERT_EQ(static_cast<size_t>(1), pending_starters.size()); 315 ASSERT_EQ(static_cast<size_t>(1), pending_starters.size());
315 size_t last_index = pending_starters.front(); 316 size_t last_index = pending_starters.front();
316 pending_starters.clear(); 317 pending_starters.clear();
317 if (chrome_starters_[last_index]->process_.IsValid()) { 318 if (chrome_starters_[last_index]->process_.IsValid()) {
318 KillProcessTree(chrome_starters_[last_index]->process_); 319 KillProcessTree(chrome_starters_[last_index]->process_);
319 chrome_starters_[last_index]->done_event_.Wait(); 320 chrome_starters_[last_index]->done_event_.Wait();
320 } 321 }
321 } 322 }
322 } 323 }
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/test/nacl_gdb_browsertest.cc ('k') | chrome/browser/ssl/bad_clock_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698