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

Unified Diff: util/win/command_line_test.cc

Issue 1405093013: win: Lower integrity level of connection pipe (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/util.gyp ('k') | util/win/exception_handler_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/command_line_test.cc
diff --git a/util/win/command_line_test.cc b/util/win/command_line_test.cc
index f395569766ad844b4987aec37b38fc572dca8bff..d3179275dfee4f2c3e8d7097d0fcfe0631812ff7 100644
--- a/util/win/command_line_test.cc
+++ b/util/win/command_line_test.cc
@@ -22,22 +22,12 @@
#include "base/scoped_generic.h"
#include "gtest/gtest.h"
#include "test/errors.h"
+#include "util/win/scoped_local_alloc.h"
namespace crashpad {
namespace test {
namespace {
-struct LocalAllocTraits {
- static HLOCAL InvalidValue() {
- return nullptr;
- }
-
- static void Free(HLOCAL memory) {
- PLOG_IF(ERROR, LocalFree(memory) != nullptr) << "LocalFree";
- }
-};
-using ScopedLocalAlloc = base::ScopedGeneric<HLOCAL, LocalAllocTraits>;
-
// Calls AppendCommandLineArgument() for every argument in argv, then calls
// CommandLineToArgvW() to decode the string into a vector again, and compares
// the input and output.
« no previous file with comments | « util/util.gyp ('k') | util/win/exception_handler_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698