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

Side by Side Diff: chrome/browser/chromeos/login/session_login_browsertest.cc

Issue 745613002: [cros] Cleanup: remove LoginUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get rid of FakeChromeUserManager usage in ExistingUserController* tests Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/session/session_state_delegate.h" 5 #include "ash/session/session_state_delegate.h"
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "base/command_line.h"
7 #include "chrome/browser/chromeos/login/login_manager_test.h" 8 #include "chrome/browser/chromeos/login/login_manager_test.h"
8 #include "chrome/browser/chromeos/login/startup_utils.h" 9 #include "chrome/browser/chromeos/login/startup_utils.h"
9 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 12 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
13 #include "chrome/browser/ui/view_ids.h" 14 #include "chrome/browser/ui/view_ids.h"
14 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "ui/views/focus/focus_manager.h" 17 #include "ui/views/focus/focus_manager.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); 64 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window);
64 views::FocusManager* focus_manager = widget->GetFocusManager(); 65 views::FocusManager* focus_manager = widget->GetFocusManager();
65 EXPECT_TRUE(focus_manager != NULL); 66 EXPECT_TRUE(focus_manager != NULL);
66 67
67 const views::View* focused_view = focus_manager->GetFocusedView(); 68 const views::View* focused_view = focus_manager->GetFocusedView();
68 EXPECT_TRUE(focused_view != NULL); 69 EXPECT_TRUE(focused_view != NULL);
69 EXPECT_EQ(VIEW_ID_OMNIBOX, focused_view->id()); 70 EXPECT_EQ(VIEW_ID_OMNIBOX, focused_view->id());
70 } 71 }
71 72
72 } // namespace chromeos 73 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698