Skip to content

Commit

Permalink
Fix linux test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwoo108 committed Oct 25, 2022
1 parent b0577ba commit 8ec1ab6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser/ui/views/tabs/vertical_tab_strip_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include "chrome/browser/ui/views/frame/glass_browser_frame_view.h"
#endif

#if BUILDFLAG(IS_LINUX)
#include "chrome/common/pref_names.h"
#endif

#if BUILDFLAG(IS_MAC)
#include "ui/views/widget/native_widget_mac.h"
#endif
Expand Down Expand Up @@ -81,6 +85,10 @@ class VerticalTabStripBrowserTest : public InProcessBrowserTest {
};

IN_PROC_BROWSER_TEST_F(VerticalTabStripBrowserTest, WindowTitle) {
#if BUILDFLAG(IS_LINUX)
browser()->profile()->GetPrefs()->SetBoolean(prefs::kUseCustomChromeFrame,
true);
#endif
// Pre-condition: Window title is "visible" by default on vertical tabs
ASSERT_TRUE(tabs::features::ShouldShowVerticalTabs());
ASSERT_TRUE(tabs::features::ShouldShowWindowTitleForVerticalTabs(browser()));
Expand Down

0 comments on commit 8ec1ab6

Please sign in to comment.