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

Unified Diff: chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc

Issue 2118503004: Media Router: Remove unnecessary and incorrect static_cast in test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SigninManagerBase Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc
diff --git a/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc b/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc
index 9ac2e4ed077bd2b26476b58bbb83657dbdd43b1b..062151ba44d87125a5e9cf95052c671665edf1a7 100644
--- a/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc
+++ b/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc
@@ -18,8 +18,8 @@ class MediaRouterContextualMenuUnitTest : public BrowserWithTestWindowTest {
void SetUp() override {
BrowserWithTestWindowTest::SetUp();
- signin_manager_ = static_cast<FakeSigninManagerForTesting*>(
- SigninManagerFactory::GetInstance()->GetForProfile(profile()));
+ signin_manager_ =
+ SigninManagerFactory::GetInstance()->GetForProfile(profile());
browser_action_test_util_.reset(
new BrowserActionTestUtil(browser(), false));
action_.reset(new MediaRouterAction(browser(),
@@ -33,13 +33,13 @@ class MediaRouterContextualMenuUnitTest : public BrowserWithTestWindowTest {
BrowserWithTestWindowTest::TearDown();
}
- FakeSigninManagerForTesting* signin_manager() { return signin_manager_; }
+ SigninManagerBase* signin_manager() { return signin_manager_; }
ui::SimpleMenuModel* model() { return model_; }
private:
std::unique_ptr<BrowserActionTestUtil> browser_action_test_util_;
std::unique_ptr<MediaRouterAction> action_;
- FakeSigninManagerForTesting* signin_manager_;
+ SigninManagerBase* signin_manager_;
ui::SimpleMenuModel* model_;
DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenuUnitTest);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698