Commit a66daf72 authored by manzagop's avatar manzagop Committed by Commit bot

Add stability_debugging_win_unittest.cc to build config

This fixes an oversight from https://codereview.chromium.org/2344343002/

BUG=620813

Review-Url: https://codereview.chromium.org/2852693003
Cr-Commit-Position: refs/heads/master@{#468987}
parent fee63e16
...@@ -95,6 +95,7 @@ if (is_win) { ...@@ -95,6 +95,7 @@ if (is_win) {
"exit_code_watcher_win_unittest.cc", "exit_code_watcher_win_unittest.cc",
"postmortem_minidump_writer_win_unittest.cc", "postmortem_minidump_writer_win_unittest.cc",
"postmortem_report_collector_unittest.cc", "postmortem_report_collector_unittest.cc",
"stability_debugging_win_unittest.cc",
"system_session_analyzer_win_unittest.cc", "system_session_analyzer_win_unittest.cc",
"watcher_client_win_unittest.cc", "watcher_client_win_unittest.cc",
"watcher_metrics_provider_win_unittest.cc", "watcher_metrics_provider_win_unittest.cc",
...@@ -105,6 +106,7 @@ if (is_win) { ...@@ -105,6 +106,7 @@ if (is_win) {
":browser_watcher", ":browser_watcher",
":browser_watcher_client", ":browser_watcher_client",
":postmortem_report_collector", ":postmortem_report_collector",
":stability",
":stability_data", ":stability_data",
":stability_report_proto", ":stability_report_proto",
"//base", "//base",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "components/browser_watcher/stability_debugging_win.h" #include "components/browser_watcher/stability_debugging.h"
#include "base/files/file_enumerator.h" #include "base/files/file_enumerator.h"
#include "base/files/file_path.h" #include "base/files/file_path.h"
...@@ -36,8 +36,9 @@ TEST_F(StabilityDebuggingWinMultiProcTest, GetStabilityFileForProcessTest) { ...@@ -36,8 +36,9 @@ TEST_F(StabilityDebuggingWinMultiProcTest, GetStabilityFileForProcessTest) {
EXPECT_EQ(stability_path, stability_path_two); EXPECT_EQ(stability_path, stability_path_two);
// Ensure a different process has a different stability path. // Ensure a different process has a different stability path.
base::SpawnChildResult spawn_result = SpawnChild("DummyProcess");
base::FilePath stability_path_other; base::FilePath stability_path_other;
ASSERT_TRUE(GetStabilityFileForProcess(SpawnChild("DummyProcess"), empty_path, ASSERT_TRUE(GetStabilityFileForProcess(spawn_result.process, empty_path,
&stability_path_other)); &stability_path_other));
EXPECT_NE(stability_path, stability_path_other); EXPECT_NE(stability_path, stability_path_other);
} }
...@@ -51,7 +52,7 @@ TEST(StabilityDebuggingWinTest, ...@@ -51,7 +52,7 @@ TEST(StabilityDebuggingWinTest,
base::ScopedTempDir temp_dir; base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath user_data_dir = temp_dir.path(); base::FilePath user_data_dir = temp_dir.GetPath();
// Create the stability directory. // Create the stability directory.
base::FilePath stability_dir = GetStabilityDir(user_data_dir); base::FilePath stability_dir = GetStabilityDir(user_data_dir);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment