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. |