Chromium Code Reviews| 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..4a586a0ce19fe2c3201eecf3aa3a1a3862974a8b 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 (off the record) profile. |
|
apacible
2016/07/09 06:07:28
nit: "(off the record)" can be removed.
trizzofo
2016/07/11 19:20:31
Done.
|
| profile()->GetOffTheRecordProfile(); |
| MockMediaRouter* router = static_cast<MockMediaRouter*>( |
| MediaRouterFactory::GetApiForBrowserContext(profile())); |
| ASSERT_TRUE(router); |
| - EXPECT_CALL(*router, OnOffTheRecordProfileShutdown()); |
| + EXPECT_CALL(*router, OnIncognitoProfileShutdown()); |
| profile()->DestroyOffTheRecordProfile(); |
| } |