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

Unified Diff: chrome/app/chrome_watcher_command_line_unittest_win.cc

Issue 1538923004: [win] Change Chrome Watcher configuration API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix outdated comment. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/chrome_watcher_command_line_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index b7c6be34463f526673649e0c7700cff02040270e..0000000000000000000000000000000000000000
--- a/chrome/app/chrome_watcher_command_line_unittest_win.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/app/chrome_watcher_command_line_win.h"
-
-#include <windows.h>
-
-#include "base/command_line.h"
-#include "base/files/file_path.h"
-#include "base/process/process_handle.h"
-#include "base/win/scoped_handle.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(ChromeWatcherCommandLineTest, BasicTest) {
- // Ownership of these handles is passed to the ScopedHandles below via
- // InterpretChromeWatcherCommandLine().
- base::ProcessHandle current =
- ::OpenProcess(PROCESS_QUERY_INFORMATION | SYNCHRONIZE,
- TRUE, // Inheritable
- ::GetCurrentProcessId());
- ASSERT_NE(nullptr, current);
-
- HANDLE event = ::CreateEvent(nullptr, FALSE, FALSE, nullptr);
- ASSERT_NE(nullptr, event);
- DWORD current_thread_id = ::GetCurrentThreadId();
- base::CommandLine cmd_line = GenerateChromeWatcherCommandLine(
- base::FilePath(L"example.exe"), current, current_thread_id, event);
-
- base::win::ScopedHandle current_result;
- DWORD current_thread_id_result = 0;
- base::win::ScopedHandle event_result;
- ASSERT_TRUE(InterpretChromeWatcherCommandLine(
- cmd_line, &current_result, &current_thread_id_result, &event_result));
- ASSERT_EQ(current, current_result.Get());
- ASSERT_EQ(current_thread_id, current_thread_id_result);
- ASSERT_EQ(event, event_result.Get());
-}
« no previous file with comments | « no previous file | chrome/app/chrome_watcher_command_line_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698