aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_embedder__support_user__agent__utils__unittest.cc
blob: 48df9a6dfeaee3cdf774606741e8f447c9d60867 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- components/embedder_support/user_agent_utils_unittest.cc.orig	2022-06-17 14:20:10 UTC
+++ components/embedder_support/user_agent_utils_unittest.cc
@@ -55,7 +55,7 @@ namespace {
 static constexpr char kChromeProductVersionRegex[] =
     "Chrome/([0-9]+).([0-9]+).([0-9]+).([0-9]+)";
 
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
 std::string GetMachine() {
   struct utsname unixinfo;
   uname(&unixinfo);
@@ -163,7 +163,7 @@ void CheckUserAgentStringOrdering(bool mobile_device) 
     int value;
     ASSERT_TRUE(base::StringToInt(pieces[i], &value));
   }
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   // X11; Linux x86_64
   ASSERT_EQ(2u, pieces.size());
   ASSERT_EQ("X11", pieces[0]);