| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/clipboard.h" | 8 #include "base/clipboard.h" |
| 9 #include "base/gfx/size.h" |
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 10 #include "base/scoped_clipboard_writer.h" | 11 #include "base/scoped_clipboard_writer.h" |
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 14 | 15 |
| 15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 16 class ClipboardTest : public PlatformTest { | 17 class ClipboardTest : public PlatformTest { |
| 17 protected: | 18 protected: |
| 18 virtual void SetUp() { | 19 virtual void SetUp() { |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 274 |
| 274 { | 275 { |
| 275 ScopedClipboardWriter clipboard_writer(&clipboard); | 276 ScopedClipboardWriter clipboard_writer(&clipboard); |
| 276 clipboard_writer.WriteBitmapFromPixels(fake_bitmap, gfx::Size(3, 4)); | 277 clipboard_writer.WriteBitmapFromPixels(fake_bitmap, gfx::Size(3, 4)); |
| 277 } | 278 } |
| 278 | 279 |
| 279 EXPECT_EQ(true, clipboard.IsFormatAvailable( | 280 EXPECT_EQ(true, clipboard.IsFormatAvailable( |
| 280 Clipboard::GetBitmapFormatType())); | 281 Clipboard::GetBitmapFormatType())); |
| 281 } | 282 } |
| 282 #endif // defined(OS_WIN) | 283 #endif // defined(OS_WIN) |
| OLD | NEW |