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

Unified Diff: util/test/executable_path_test.cc

Issue 852773004: win: Add implementation of ExecutablePath (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: test Created 5 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 | util/test/executable_path_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/executable_path_test.cc
diff --git a/util/test/executable_path_test.cc b/util/test/executable_path_test.cc
index 4c282fac28e7613a60a341ff3f8b262d3ae7248c..54374e34c97425c5d2a6ee64db99f51db4bb33b9 100644
--- a/util/test/executable_path_test.cc
+++ b/util/test/executable_path_test.cc
@@ -15,6 +15,7 @@
#include "util/test/executable_path.h"
#include "base/files/file_path.h"
+#include "build/build_config.h"
#include "gtest/gtest.h"
namespace crashpad {
@@ -24,7 +25,11 @@ namespace {
TEST(ExecutablePath, ExecutablePath) {
base::FilePath executable_path = ExecutablePath();
base::FilePath executable_name = executable_path.BaseName();
- EXPECT_EQ(FILE_PATH_LITERAL("util_test"), executable_name.value());
+#if defined(OS_WIN)
+ EXPECT_EQ(FILE_PATH_LITERAL("util_test.exe"), executable_name.value());
+#else
+ EXPECT_EQ("util_test", executable_name.value());
+#endif // OS_WIN
}
} // namespace
« no previous file with comments | « no previous file | util/test/executable_path_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698