Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: base/clipboard_unittest.cc

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « base/clipboard_mac.mm ('k') | base/clipboard_win.cc » ('j') | base/system_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698