Skip to content

Commit 63cea2e

Browse files
committed
Re-add support for Chromecast
Fixes brave/brave-browser#209 Revert "Merge pull request #2119 from brave/revert_enabling_chromecast" This reverts commit 29ea1df, reversing changes made to c08710a.
1 parent f536f8e commit 63cea2e

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
2+
* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
4+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
6+
#define GOOGLE_CHROME_BUILD
7+
#include "../../../../extensions/common/feature_switch.cc" // NOLINT
8+
#undef GOOGLE_CHROME_BUILD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
2+
* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
4+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
6+
#include "extensions/common/feature_switch.h"
7+
8+
#include "base/command_line.h"
9+
#include "testing/gtest/include/gtest/gtest.h"
10+
11+
TEST(BraveFeatureSwitchTest, LoadMediaRouterComponentExtensionFlagTest) {
12+
EXPECT_TRUE(extensions::FeatureSwitch::load_media_router_component_extension()
13+
->IsEnabled());
14+
}

test/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ test("brave_unit_tests") {
7878
"//brave/chromium_src/components/variations/service/field_trial_unittest.cc",
7979
"//brave/chromium_src/components/version_info/brave_version_info_unittest.cc",
8080
"//brave/chromium_src/components/translate/core/browser/translate_manager_unittest.cc",
81+
"//brave/chromium_src/extensions/common/feature_switch_unittest.cc",
8182
"//brave/chromium_src/net/cookies/brave_canonical_cookie_unittest.cc",
8283
"//brave/common/brave_content_client_unittest.cc",
8384
"//brave/common/importer/brave_mock_importer_bridge.cc",

0 commit comments

Comments
 (0)