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 "base/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
11 #include "base/test/test_file_util.h" | 11 #include "base/test/test_file_util.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
15 #include "chrome/browser/platform_util.h" | |
16 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/chrome_constants.h" | |
19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/automation/automation_proxy.h" | 19 #include "chrome/test/automation/automation_proxy.h" |
21 #include "chrome/test/automation/browser_proxy.h" | 20 #include "chrome/test/automation/browser_proxy.h" |
22 #include "chrome/test/automation/tab_proxy.h" | 21 #include "chrome/test/automation/tab_proxy.h" |
23 #include "chrome/test/automation/window_proxy.h" | 22 #include "chrome/test/automation/window_proxy.h" |
24 #include "chrome/test/ui/ui_test.h" | 23 #include "chrome/test/ui/ui_test.h" |
25 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
26 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
27 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
28 #include "net/test/test_server.h" | 27 #include "net/test/test_server.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 383 |
385 // Verify that the window is present. | 384 // Verify that the window is present. |
386 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); | 385 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); |
387 ASSERT_TRUE(browser.get()); | 386 ASSERT_TRUE(browser.get()); |
388 | 387 |
389 // Verify the browser is in application mode. | 388 // Verify the browser is in application mode. |
390 bool is_application; | 389 bool is_application; |
391 ASSERT_TRUE(browser->IsApplication(&is_application)); | 390 ASSERT_TRUE(browser->IsApplication(&is_application)); |
392 EXPECT_TRUE(is_application); | 391 EXPECT_TRUE(is_application); |
393 } | 392 } |
OLD | NEW |