| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/clipboard/clipboard.h" | 9 #include "app/clipboard/clipboard.h" |
| 10 #include "app/clipboard/scoped_clipboard_writer.h" | 10 #include "app/clipboard/scoped_clipboard_writer.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/scoped_ptr.h" |
| 12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 14 #include "gfx/size.h" | 15 #include "gfx/size.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 17 | 18 |
| 18 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
| 19 #include "app/clipboard/clipboard_util_win.h" | 20 #include "app/clipboard/clipboard_util_win.h" |
| 20 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
| 21 #endif | 22 #endif |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 writer.WriteURL(UTF8ToUTF16("foo")); | 400 writer.WriteURL(UTF8ToUTF16("foo")); |
| 400 writer.WriteHTML(UTF8ToUTF16("foo"), "bar"); | 401 writer.WriteHTML(UTF8ToUTF16("foo"), "bar"); |
| 401 writer.WriteBookmark(UTF8ToUTF16("foo"), "bar"); | 402 writer.WriteBookmark(UTF8ToUTF16("foo"), "bar"); |
| 402 writer.WriteHyperlink(ASCIIToUTF16("foo"), "bar"); | 403 writer.WriteHyperlink(ASCIIToUTF16("foo"), "bar"); |
| 403 writer.WriteWebSmartPaste(); | 404 writer.WriteWebSmartPaste(); |
| 404 // Left out: WriteFile, WriteFiles, WriteBitmapFromPixels, WritePickledData. | 405 // Left out: WriteFile, WriteFiles, WriteBitmapFromPixels, WritePickledData. |
| 405 } | 406 } |
| 406 | 407 |
| 407 // Passes if we don't crash. | 408 // Passes if we don't crash. |
| 408 } | 409 } |
| OLD | NEW |