Commit 8e2e777e authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated getLastUsedProfile function in Feed tests.

Profile#getLastUsedProfile| is deprecated and replaced with
|Profile#getLastUsedRegularProfile|. This CL updates Feed
test class.

Note: This change is only code clean-up, does not change any behaviour.

Bug: 1041781
Change-Id: Ic78077bd7de57a853dc330b394c3fe47f253439a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2106583Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarDan H <harringtond@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751269}
parent f89a7797
......@@ -85,7 +85,7 @@ public final class FeedJournalStorageConformanceTest extends JournalStorageConfo
public void setUp() {
TestThreadUtils.runOnUiThreadBlocking(() -> {
// journalStorage is declared and tested in JournalStorageConformanceTest.
mJournalStorage = new JournalStorageWrapper(Profile.getLastUsedProfile());
mJournalStorage = new JournalStorageWrapper(Profile.getLastUsedRegularProfile());
});
}
......
......@@ -100,7 +100,7 @@ public final class FeedNetworkBridgeConformanceTest extends NetworkClientConform
private void createNetworkClient() {
// The networkClient is declared and tested in NetworkClientConformanceTest
mNetworkClient = new FeedTestNetworkBridge(Profile.getLastUsedProfile());
mNetworkClient = new FeedTestNetworkBridge(Profile.getLastUsedRegularProfile());
}
private void destroyNetworkClient() {
......
......@@ -65,7 +65,7 @@ public final class FeedSchedulerBridgeConformanceTest extends SchedulerConforman
@Before
public void setUp() {
// The scheduler is declared and tested in SchedulerConformanceTest.
mScheduler = new FeedSchedulerBridge(Profile.getLastUsedProfile());
mScheduler = new FeedSchedulerBridge(Profile.getLastUsedRegularProfile());
if (mUseRequestManager) {
((FeedSchedulerBridge) mScheduler).initializeFeedDependencies(mRequestManager);
}
......
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