OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/scoped_temp_dir.h" |
9 #include "base/test/test_file_util.h" | 10 #include "base/test/test_file_util.h" |
10 #include "base/values.h" | 11 #include "base/values.h" |
11 #include "base/memory/scoped_temp_dir.h" | |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/automation/browser_proxy.h" | 16 #include "chrome/test/automation/browser_proxy.h" |
17 #include "chrome/test/automation/window_proxy.h" | 17 #include "chrome/test/automation/window_proxy.h" |
18 #include "chrome/test/ui/ui_test.h" | 18 #include "chrome/test/ui/ui_test.h" |
19 #include "content/common/json_value_serializer.h" | 19 #include "content/common/json_value_serializer.h" |
20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
21 | 21 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Find if launched window is maximized. | 197 // Find if launched window is maximized. |
198 bool is_window_maximized = false; | 198 bool is_window_maximized = false; |
199 ASSERT_TRUE(window->IsMaximized(&is_window_maximized)); | 199 ASSERT_TRUE(window->IsMaximized(&is_window_maximized)); |
200 bool is_maximized = false; | 200 bool is_maximized = false; |
201 EXPECT_TRUE(root_dict->GetBoolean(kBrowserWindowPlacement + ".maximized", | 201 EXPECT_TRUE(root_dict->GetBoolean(kBrowserWindowPlacement + ".maximized", |
202 &is_maximized)); | 202 &is_maximized)); |
203 EXPECT_EQ(is_maximized, is_window_maximized); | 203 EXPECT_EQ(is_maximized, is_window_maximized); |
204 } | 204 } |
205 #endif | 205 #endif |
206 | 206 |
OLD | NEW |