Index: chrome/app/chrome_watcher_command_line_unittest_win.cc |
diff --git a/chrome/app/chrome_watcher_command_line_unittest_win.cc b/chrome/app/chrome_watcher_command_line_unittest_win.cc |
index 0cf692734b12b35b39860b5fda982bd84a64342f..85b95d45a1d3775ad25da2454fa3a15f11bf3586 100644 |
--- a/chrome/app/chrome_watcher_command_line_unittest_win.cc |
+++ b/chrome/app/chrome_watcher_command_line_unittest_win.cc |
@@ -6,15 +6,16 @@ |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
-#include "base/process/process_handle.h" |
+#include "base/process/process.h" |
#include "base/win/scoped_handle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
TEST(ChromeWatcherCommandLineTest, BasicTest) { |
- base::ProcessHandle current = nullptr; |
- ASSERT_TRUE(base::OpenProcessHandle(base::GetCurrentProcId(), ¤t)); |
+ base::Process current = base::Process::Open(base::GetCurrentProcId()); |
+ ASSERT_TRUE(current.IsValid()); |
base::CommandLine cmd_line = |
- GenerateChromeWatcherCommandLine(base::FilePath(L"example.exe"), current); |
+ GenerateChromeWatcherCommandLine(base::FilePath(L"example.exe"), |
+ current.Handle()); |
base::win::ScopedHandle result = InterpretChromeWatcherCommandLine(cmd_line); |
- ASSERT_EQ(current, result.Get()); |
+ ASSERT_EQ(current.Handle(), result.Get()); |
} |