Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Copyright (c) 2024 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#include <stddef.h>

namespace chrome {
inline constexpr char kPrivacySandboxManageTopicsURL[] =
"chrome://settings/adPrivacy/interests/manage";
inline constexpr char kPrivacySandboxAdTopicsURL[] =
"chrome://settings/adPrivacy/interests";
} // namespace chrome

#define StartWithTwoBlockedTopics DISABLED_StartWithTwoBlockedTopics
#define BlockFirstTopicOnManageTopicsPage \
DISABLED_BlockFirstTopicOnManageTopicsPage
#define UnblockOneTopicOnAdTopicsPage DISABLED_UnblockOneTopicOnAdTopicsPage
#define ConfirmDefaultIconIsNotUsed DISABLED_ConfirmDefaultIconIsNotUsed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I don't see how these defines are related to tests build.

we have *.filter files to disable upstream tests, so we shouldn't disable them via defines here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the kPrivacySandboxManageTopicsURL and kPrivacySandboxAdTopicsURL pages are not available in Brave, and those added by me are just for fixing the build, I wanted to disable these tests. Disabling the tests via a config file is much better. Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove these defines, let's only fix the build with your PR. I'd like to merge it, but this is not something we should have here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goodov Done. Thanks!

#include "src/chrome/browser/privacy_sandbox/browsing_topics_settings_interactive_uitest.cc"
#undef StartWithTwoBlockedTopics
#undef BlockFirstTopicOnManageTopicsPage
#undef UnblockOneTopicOnAdTopicsPage
#undef ConfirmDefaultIconIsNotUsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Copyright (c) 2024 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "brave/browser/ui/views/side_panel/brave_side_panel.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/side_panel/side_panel.h"

#define SidePanel BraveSidePanel
#include "src/chrome/browser/ui/views/side_search/side_search_browsertest.cc"
#undef SidePanel
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ void TabHoverCardBubbleView::SetPlaceholderImage() {
}
TabHoverCardBubbleView_ChromiumImpl::SetPlaceholderImage();
}
BEGIN_METADATA(TabHoverCardBubbleView)
END_METADATA
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

// Inject a protected method that will have access to the private members of the
// base class. Then, we can call this method from the subclass' override.
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/gfx/image/image_skia.h"

class TabHoverCardBubbleView;
Expand All @@ -32,6 +33,7 @@ class TabHoverCardBubbleView;
#undef BRAVE_TAB_HOVER_CARD_BUBBLE_VIEW_H_

class TabHoverCardBubbleView : public TabHoverCardBubbleView_ChromiumImpl {
METADATA_HEADER(TabHoverCardBubbleView, TabHoverCardBubbleView_ChromiumImpl)
public:
using TabHoverCardBubbleView_ChromiumImpl::
TabHoverCardBubbleView_ChromiumImpl;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Copyright (c) 2024 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "brave/browser/ui/views/tabs/brave_tab_hover_card_controller.h"

// Add this comment so that the pre-submit warnings are silenced
#include "src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc"