File tree 3 files changed +23
-0
lines changed
chromium_src/extensions/common
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ test("brave_unit_tests") {
76
76
" //brave/chromium_src/components/search_engines/brave_template_url_service_util_unittest.cc" ,
77
77
" //brave/chromium_src/components/translate/core/browser/translate_manager_unittest.cc" ,
78
78
" //brave/chromium_src/components/version_info/brave_version_info_unittest.cc" ,
79
+ " //brave/chromium_src/extensions/common/feature_switch_unittest.cc" ,
79
80
" //brave/chromium_src/net/cookies/brave_canonical_cookie_unittest.cc" ,
80
81
" //brave/common/brave_content_client_unittest.cc" ,
81
82
" //brave/common/importer/brave_mock_importer_bridge.cc" ,
You can’t perform that action at this time.
0 commit comments