OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/tab_closeable_state_watcher.h" | 5 #include "chrome/browser/chromeos/tab_closeable_state_watcher.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "chrome/browser/browser_list.h" | 8 #include "chrome/browser/browser_list.h" |
9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/browser/tabs/tab_strip_model.h" | 12 #include "chrome/browser/tabs/tab_strip_model.h" |
13 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 13 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
14 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" | 14 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
17 #include "chrome/test/in_process_browser_test.h" | 17 #include "chrome/test/in_process_browser_test.h" |
18 #include "chrome/test/ui_test_utils.h" | 18 #include "chrome/test/ui_test_utils.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 AppModalDialog* confirm = ui_test_utils::WaitForAppModalDialog(); | 311 AppModalDialog* confirm = ui_test_utils::WaitForAppModalDialog(); |
312 confirm->native_dialog()->AcceptAppModalDialog(); | 312 confirm->native_dialog()->AcceptAppModalDialog(); |
313 NewTabObserver new_tab_observer(browser()); | 313 NewTabObserver new_tab_observer(browser()); |
314 EXPECT_EQ(1u, BrowserList::size()); | 314 EXPECT_EQ(1u, BrowserList::size()); |
315 EXPECT_EQ(browser(), *(BrowserList::begin())); | 315 EXPECT_EQ(browser(), *(BrowserList::begin())); |
316 EXPECT_EQ(1, browser()->tab_count()); | 316 EXPECT_EQ(1, browser()->tab_count()); |
317 EXPECT_EQ(ntp_url_, browser()->GetSelectedTabContents()->GetURL()); | 317 EXPECT_EQ(ntp_url_, browser()->GetSelectedTabContents()->GetURL()); |
318 } | 318 } |
319 | 319 |
320 } // namespace chromeos | 320 } // namespace chromeos |
OLD | NEW |