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

Unified Diff: components/browser_watcher/stability_debugging_win_unittest.cc

Issue 2852693003: Add stability_debugging_win_unittest.cc to build config (Closed)
Patch Set: Created 3 years, 8 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 | « components/browser_watcher/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/stability_debugging_win_unittest.cc
diff --git a/components/browser_watcher/stability_debugging_win_unittest.cc b/components/browser_watcher/stability_debugging_win_unittest.cc
index d1920109a061bd65363bde9d654f57ca284f7438..7184ad7a323195c489e30061e6b579f6db19b136 100644
--- a/components/browser_watcher/stability_debugging_win_unittest.cc
+++ b/components/browser_watcher/stability_debugging_win_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// 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_path.h"
@@ -36,8 +36,9 @@ TEST_F(StabilityDebuggingWinMultiProcTest, GetStabilityFileForProcessTest) {
EXPECT_EQ(stability_path, stability_path_two);
// Ensure a different process has a different stability path.
+ base::SpawnChildResult spawn_result = SpawnChild("DummyProcess");
base::FilePath stability_path_other;
- ASSERT_TRUE(GetStabilityFileForProcess(SpawnChild("DummyProcess"), empty_path,
+ ASSERT_TRUE(GetStabilityFileForProcess(spawn_result.process, empty_path,
&stability_path_other));
EXPECT_NE(stability_path, stability_path_other);
}
@@ -51,7 +52,7 @@ TEST(StabilityDebuggingWinTest,
base::ScopedTempDir temp_dir;
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.
base::FilePath stability_dir = GetStabilityDir(user_data_dir);
« no previous file with comments | « components/browser_watcher/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698