Commit 7075d700 authored by James Vecore's avatar James Vecore Committed by Commit Bot

[Nearby] Clear active profile in teardown to fix unit-tests

The active profile was not being cleared on the |NearbyProcessManager|
singleton in the unit-test tear down which was causing unit-test
failures.

Change-Id: Iefe1b037beeb23924550c9ae6ccaf1ba0f111b5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2354616
Commit-Queue: James Vecore <vecore@google.com>
Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
Auto-Submit: James Vecore <vecore@google.com>
Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797774}
parent 8dc47fe6
......@@ -252,7 +252,10 @@ class NearbySharingServiceImplTest : public testing::Test {
.WillRepeatedly(testing::Return(&mock_decoder_));
}
void TearDown() override { profile_manager_.DeleteAllTestingProfiles(); }
void TearDown() override {
profile_manager_.DeleteAllTestingProfiles();
NearbyProcessManager::GetInstance().ClearActiveProfile();
}
std::unique_ptr<NearbySharingServiceImpl> CreateService(
const std::string& profile_name) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment