| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <list> | 5 #include <list> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/defaults.h" | 12 #include "chrome/browser/defaults.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_iterator.h" | 14 #include "chrome/browser/ui/browser_iterator.h" |
| 15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
| 16 #include "chrome/browser/ui/host_desktop.h" | 16 #include "chrome/browser/ui/host_desktop.h" |
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 20 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
| 21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
| 22 #include "content/public/test/test_utils.h" | 22 #include "content/public/test/test_utils.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 const char* test_app_popup_name1 = "TestApp1"; | 25 const char* test_app_popup_name1 = "TestApp1"; |
| 26 const char* test_app_popup_name2 = "TestApp2"; | 26 const char* test_app_popup_name2 = "TestApp2"; |
| 27 } | 27 } |
| 28 | 28 |
| 29 class SessionRestoreTestChromeOS : public InProcessBrowserTest { | 29 class SessionRestoreTestChromeOS : public InProcessBrowserTest { |
| 30 public: | 30 public: |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 size_t total_count = 0; | 154 size_t total_count = 0; |
| 155 size_t maximized_count = 0; | 155 size_t maximized_count = 0; |
| 156 for (chrome::BrowserIterator it; !it.done(); it.Next()) { | 156 for (chrome::BrowserIterator it; !it.done(); it.Next()) { |
| 157 ++total_count; | 157 ++total_count; |
| 158 if (it->window()->IsMaximized()) | 158 if (it->window()->IsMaximized()) |
| 159 ++maximized_count; | 159 ++maximized_count; |
| 160 } | 160 } |
| 161 EXPECT_EQ(4u, total_count); | 161 EXPECT_EQ(4u, total_count); |
| 162 EXPECT_EQ(2u, maximized_count); | 162 EXPECT_EQ(2u, maximized_count); |
| 163 } | 163 } |
| OLD | NEW |