OLD | NEW |
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/common/session/session_state_delegate.h" |
6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/chromeos/login/login_manager_test.h" | 8 #include "chrome/browser/chromeos/login/login_manager_test.h" |
9 #include "chrome/browser/chromeos/login/startup_utils.h" | 9 #include "chrome/browser/chromeos/login/startup_utils.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
14 #include "chrome/browser/ui/view_ids.h" | 14 #include "chrome/browser/ui/view_ids.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); | 63 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); |
64 views::FocusManager* focus_manager = widget->GetFocusManager(); | 64 views::FocusManager* focus_manager = widget->GetFocusManager(); |
65 EXPECT_TRUE(focus_manager != NULL); | 65 EXPECT_TRUE(focus_manager != NULL); |
66 | 66 |
67 const views::View* focused_view = focus_manager->GetFocusedView(); | 67 const views::View* focused_view = focus_manager->GetFocusedView(); |
68 EXPECT_TRUE(focused_view != NULL); | 68 EXPECT_TRUE(focused_view != NULL); |
69 EXPECT_EQ(VIEW_ID_OMNIBOX, focused_view->id()); | 69 EXPECT_EQ(VIEW_ID_OMNIBOX, focused_view->id()); |
70 } | 70 } |
71 | 71 |
72 } // namespace chromeos | 72 } // namespace chromeos |
OLD | NEW |