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

Side by Side Diff: base/memory/shared_memory_win_unittest.cc

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <windows.h> 5 #include <windows.h>
6 #include <sddl.h> 6 #include <sddl.h>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/free_deleter.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
11 #include "base/process/process.h" 12 #include "base/process/process.h"
12 #include "base/rand_util.h" 13 #include "base/rand_util.h"
13 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
14 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
15 #include "base/test/multiprocess_test.h" 16 #include "base/test/multiprocess_test.h"
16 #include "base/test/test_timeouts.h" 17 #include "base/test/test_timeouts.h"
17 #include "base/win/scoped_handle.h" 18 #include "base/win/scoped_handle.h"
18 #include "base/win/win_util.h" 19 #include "base/win/win_util.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 WriteHandleToPipe(communication_pipe.Get(), raw_handle); 213 WriteHandleToPipe(communication_pipe.Get(), raw_handle);
213 214
214 int exit_code; 215 int exit_code;
215 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), 216 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(),
216 &exit_code)); 217 &exit_code));
217 EXPECT_EQ(0, exit_code); 218 EXPECT_EQ(0, exit_code);
218 } 219 }
219 220
220 } // namespace 221 } // namespace
221 } // namespace base 222 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698