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 <stddef.h> |
| 6 |
5 #include <list> | 7 #include <list> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/defaults.h" | 14 #include "chrome/browser/defaults.h" |
13 #include "chrome/browser/prefs/session_startup_pref.h" | 15 #include "chrome/browser/prefs/session_startup_pref.h" |
14 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 size_t total_count = 0; | 157 size_t total_count = 0; |
156 size_t maximized_count = 0; | 158 size_t maximized_count = 0; |
157 for (chrome::BrowserIterator it; !it.done(); it.Next()) { | 159 for (chrome::BrowserIterator it; !it.done(); it.Next()) { |
158 ++total_count; | 160 ++total_count; |
159 if (it->window()->IsMaximized()) | 161 if (it->window()->IsMaximized()) |
160 ++maximized_count; | 162 ++maximized_count; |
161 } | 163 } |
162 EXPECT_EQ(4u, total_count); | 164 EXPECT_EQ(4u, total_count); |
163 EXPECT_EQ(2u, maximized_count); | 165 EXPECT_EQ(2u, maximized_count); |
164 } | 166 } |
OLD | NEW |