-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7899 from /issues/14001
Fix build of upstream Chromium's unit_tests & browser_tests targets
- Loading branch information
Showing
7 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "../../../../../chrome/test/base/testing_profile.cc" | ||
|
||
#include "brave/test/base/brave_testing_profile.cc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Copyright (c) 2020 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 http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_CHROMIUM_SRC_CHROME_TEST_BASE_TESTING_PROFILE_H_ | ||
#define BRAVE_CHROMIUM_SRC_CHROME_TEST_BASE_TESTING_PROFILE_H_ | ||
|
||
#include "../../../../../chrome/test/base/testing_profile.h" | ||
|
||
#include "brave/test/base/brave_testing_profile.h" | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_CHROME_TEST_BASE_TESTING_PROFILE_H_ |
20 changes: 20 additions & 0 deletions
20
chromium_src/components/sync_device_info/fake_device_info_tracker.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. | ||
|
||
#include "brave/components/sync_device_info/brave_device_info.h" | ||
|
||
#include "../../../../components/sync_device_info/fake_device_info_tracker.cc" | ||
|
||
namespace syncer { | ||
|
||
void FakeDeviceInfoTracker::DeleteDeviceInfo(const std::string& client_id, | ||
base::OnceClosure callback) {} | ||
|
||
std::vector<std::unique_ptr<BraveDeviceInfo>> | ||
FakeDeviceInfoTracker::GetAllBraveDeviceInfo() const { | ||
return std::vector<std::unique_ptr<BraveDeviceInfo>>(); | ||
} | ||
|
||
} // namespace syncer |
23 changes: 23 additions & 0 deletions
23
chromium_src/components/sync_device_info/fake_device_info_tracker.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. | ||
|
||
#ifndef BRAVE_CHROMIUM_SRC_COMPONENTS_SYNC_DEVICE_INFO_FAKE_DEVICE_INFO_TRACKER_H_ | ||
#define BRAVE_CHROMIUM_SRC_COMPONENTS_SYNC_DEVICE_INFO_FAKE_DEVICE_INFO_TRACKER_H_ | ||
|
||
#include "brave/components/sync_device_info/brave_device_info.h" | ||
#include "components/sync_device_info/device_info_tracker.h" | ||
|
||
#define ForcePulseForTest \ | ||
DeleteDeviceInfo(const std::string& client_id, base::OnceClosure callback) \ | ||
override; \ | ||
std::vector<std::unique_ptr<BraveDeviceInfo>> GetAllBraveDeviceInfo() \ | ||
const override; \ | ||
void ForcePulseForTest | ||
|
||
#include "../../../../components/sync_device_info/fake_device_info_tracker.h" | ||
|
||
#undef ForcePulseForTest | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_COMPONENTS_SYNC_DEVICE_INFO_FAKE_DEVICE_INFO_TRACKER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters