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/common/pref_names.h" | |
20 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 20 #include "components/sessions/serialized_navigation_entry_test_helper.h" |
22 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
23 #include "content/public/test/test_utils.h" | 22 #include "content/public/test/test_utils.h" |
24 | 23 |
25 namespace { | 24 namespace { |
26 const char* test_app_popup_name1 = "TestApp1"; | 25 const char* test_app_popup_name1 = "TestApp1"; |
27 const char* test_app_popup_name2 = "TestApp2"; | 26 const char* test_app_popup_name2 = "TestApp2"; |
28 } | 27 } |
29 | 28 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 size_t total_count = 0; | 162 size_t total_count = 0; |
164 size_t maximized_count = 0; | 163 size_t maximized_count = 0; |
165 for (chrome::BrowserIterator it; !it.done(); it.Next()) { | 164 for (chrome::BrowserIterator it; !it.done(); it.Next()) { |
166 ++total_count; | 165 ++total_count; |
167 if (it->window()->IsMaximized()) | 166 if (it->window()->IsMaximized()) |
168 ++maximized_count; | 167 ++maximized_count; |
169 } | 168 } |
170 EXPECT_EQ(4u, total_count); | 169 EXPECT_EQ(4u, total_count); |
171 EXPECT_EQ(2u, maximized_count); | 170 EXPECT_EQ(2u, maximized_count); |
172 } | 171 } |
OLD | NEW |