OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/clipboard/clipboard.h" | 5 #include "app/clipboard/clipboard.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.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_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/browser.h" | |
12 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
13 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/window_sizer.h" | 15 #include "chrome/browser/window_sizer.h" |
16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
19 #include "chrome/test/in_process_browser_test.h" | 19 #include "chrome/test/in_process_browser_test.h" |
20 #include "chrome/test/ui_test_utils.h" | 20 #include "chrome/test/ui_test_utils.h" |
21 #include "gfx/codec/png_codec.h" | 21 #include "gfx/codec/png_codec.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 browser()->GetSelectedTabContents()->render_view_host()->Copy(); | 256 browser()->GetSelectedTabContents()->render_view_host()->Copy(); |
257 ASSERT_NO_FATAL_FAILURE(WaitForResponse()); | 257 ASSERT_NO_FATAL_FAILURE(WaitForResponse()); |
258 | 258 |
259 std::string text; | 259 std::string text; |
260 clipboard.ReadAsciiText(Clipboard::BUFFER_STANDARD, &text); | 260 clipboard.ReadAsciiText(Clipboard::BUFFER_STANDARD, &text); |
261 ASSERT_EQ("adipiscing", text); | 261 ASSERT_EQ("adipiscing", text); |
262 } | 262 } |
263 | 263 |
264 } // namespace | 264 } // namespace |
OLD | NEW |