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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/singleton.h" | 6 #include "base/memory/singleton.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/string_util.h" | |
9 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
| 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
12 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 12 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
13 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 13 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
14 #include "content/browser/browser_plugin/test_browser_plugin_embedder.h" | 14 #include "content/browser/browser_plugin/test_browser_plugin_embedder.h" |
15 #include "content/browser/browser_plugin/test_browser_plugin_guest.h" | 15 #include "content/browser/browser_plugin/test_browser_plugin_guest.h" |
16 #include "content/browser/browser_plugin/test_browser_plugin_guest_manager.h" | 16 #include "content/browser/browser_plugin/test_browser_plugin_guest_manager.h" |
17 #include "content/browser/child_process_security_policy_impl.h" | 17 #include "content/browser/child_process_security_policy_impl.h" |
18 #include "content/browser/renderer_host/render_view_host_impl.h" | 18 #include "content/browser/renderer_host/render_view_host_impl.h" |
19 #include "content/browser/web_contents/web_contents_impl.h" | 19 #include "content/browser/web_contents/web_contents_impl.h" |
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 const string16 expected_title = ASCIIToUTF16("AutoSize(640, 480)"); | 1458 const string16 expected_title = ASCIIToUTF16("AutoSize(640, 480)"); |
1459 content::TitleWatcher title_watcher(test_embedder()->web_contents(), | 1459 content::TitleWatcher title_watcher(test_embedder()->web_contents(), |
1460 expected_title); | 1460 expected_title); |
1461 RemoveAttributes(rvh, "maxwidth"); | 1461 RemoveAttributes(rvh, "maxwidth"); |
1462 string16 actual_title = title_watcher.WaitAndGetTitle(); | 1462 string16 actual_title = title_watcher.WaitAndGetTitle(); |
1463 EXPECT_EQ(expected_title, actual_title); | 1463 EXPECT_EQ(expected_title, actual_title); |
1464 } | 1464 } |
1465 } | 1465 } |
1466 | 1466 |
1467 } // namespace content | 1467 } // namespace content |
OLD | NEW |