1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- components/embedder_support/user_agent_utils_unittest.cc.orig 2025-06-30 07:04:30 UTC
+++ components/embedder_support/user_agent_utils_unittest.cc
@@ -148,7 +148,7 @@ void CheckUserAgentStringOrdering(bool mobile_device)
ASSERT_EQ("CrOS", pieces[0]);
ASSERT_EQ("x86_64", pieces[1]);
ASSERT_EQ("14541.0.0", pieces[2]);
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Post-UA Reduction there is a single <unifiedPlatform> value for Linux:
// X11; Linux x86_64
ASSERT_EQ(2u, pieces.size());
@@ -336,7 +336,7 @@ class UserAgentUtilsTest : public testing::Test,
"X11; CrOS x86_64 14541.0.0";
#elif BUILDFLAG(IS_FUCHSIA)
"Fuchsia";
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
"X11; Linux x86_64";
#elif BUILDFLAG(IS_MAC)
"Macintosh; Intel Mac OS X 10_15_7";
@@ -716,7 +716,7 @@ TEST_F(UserAgentUtilsTest, UserAgentMetadata) {
#endif
#elif BUILDFLAG(IS_ANDROID)
EXPECT_EQ(metadata.platform, "Android");
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
EXPECT_EQ(metadata.platform, "Linux");
#elif BUILDFLAG(IS_FREEBSD)
EXPECT_EQ(metadata.platform, "FreeBSD");
|