Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2070)

Unified Diff: chrome/browser/media/router/media_router_factory_unittest.cc

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/media_router_factory_unittest.cc
diff --git a/chrome/browser/media/router/media_router_factory_unittest.cc b/chrome/browser/media/router/media_router_factory_unittest.cc
index 194660f17a2e69e391ed6cefbe83945c388a15d8..9ccff64fe5c23f79cb32508786db60adb40b2675 100644
--- a/chrome/browser/media/router/media_router_factory_unittest.cc
+++ b/chrome/browser/media/router/media_router_factory_unittest.cc
@@ -39,29 +39,29 @@ TEST_F(MediaRouterFactoryTest, CreateForRegularProfile) {
ASSERT_TRUE(MediaRouterFactory::GetApiForBrowserContext(profile()));
}
-TEST_F(MediaRouterFactoryTest, CreateForOffTheRecordProfile) {
- Profile* otr_profile = profile()->GetOffTheRecordProfile();
- ASSERT_TRUE(otr_profile);
+TEST_F(MediaRouterFactoryTest, CreateForIncognitoProfile) {
+ Profile* incognito_profile = profile()->GetOffTheRecordProfile();
+ ASSERT_TRUE(incognito_profile);
- // Makes sure a MediaRouter can be created from an OTR Profile.
+ // Makes sure a MediaRouter can be created from an incognito Profile.
MediaRouter* router =
- MediaRouterFactory::GetApiForBrowserContext(otr_profile);
+ MediaRouterFactory::GetApiForBrowserContext(incognito_profile);
ASSERT_TRUE(router);
- // A Profile and its OTR Profile share the same MediaRouter instance.
+ // A Profile and its incognito Profile share the same MediaRouter instance.
ASSERT_EQ(router, MediaRouterFactory::GetApiForBrowserContext(profile()));
}
-TEST_F(MediaRouterFactoryTest, OffTheRecordBrowserContextShutdown) {
+TEST_F(MediaRouterFactoryTest, IncognitoBrowserContextShutdown) {
MediaRouterFactory::GetMediaRouterFactoryForTest()->SetTestingFactory(
profile(), &CreateMockMediaRouter);
- // Creates an off the record profile.
+ // Creates an incognito profile.
profile()->GetOffTheRecordProfile();
MockMediaRouter* router = static_cast<MockMediaRouter*>(
MediaRouterFactory::GetApiForBrowserContext(profile()));
ASSERT_TRUE(router);
- EXPECT_CALL(*router, OnOffTheRecordProfileShutdown());
+ EXPECT_CALL(*router, OnIncognitoProfileShutdown());
profile()->DestroyOffTheRecordProfile();
}
« no previous file with comments | « chrome/browser/media/router/media_router_factory.cc ('k') | chrome/browser/media/router/mock_media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698