summaryrefslogtreecommitdiffstats
path: root/chrome_elf/chrome_elf_util_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_elf/chrome_elf_util_unittest.cc')
-rw-r--r--chrome_elf/chrome_elf_util_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_elf/chrome_elf_util_unittest.cc b/chrome_elf/chrome_elf_util_unittest.cc
index ad83801..979a49a 100644
--- a/chrome_elf/chrome_elf_util_unittest.cc
+++ b/chrome_elf/chrome_elf_util_unittest.cc
@@ -48,6 +48,12 @@ TEST(ChromeElfUtilTest, SystemInstallTest) {
EXPECT_FALSE(IsSystemInstall(kChromeUserExePath));
}
+TEST(ChromeElfUtilTest, BrowserProcessTest) {
+ EXPECT_TRUE(g_process_type == ProcessType::UNINITIALIZED);
+ InitializeProcessType();
+ EXPECT_FALSE(IsNonBrowserProcess());
+}
+
// Parameterized test with paramters:
// 1: product: "canary" or "google"
// 2: install level: "user" or "system"