summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 15:50:17 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 15:50:17 +0000
commitfadc503f7a9173dd0928350aba3141137e2f62db (patch)
treee8c38cc1fced0119a34c1af50e44c59dc46ddc2f /ui
parentd4af8e56a65e79313231d322a17013be946647e5 (diff)
downloadchromium_src-fadc503f7a9173dd0928350aba3141137e2f62db.zip
chromium_src-fadc503f7a9173dd0928350aba3141137e2f62db.tar.gz
chromium_src-fadc503f7a9173dd0928350aba3141137e2f62db.tar.bz2
Removing uneeded test. Because of the native theme cleanup, the method
being called here is going away anyway. TEST=None BUG=None R=ben@chromium.org Review URL: http://codereview.chromium.org/6801025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/canvas_direct2d_unittest.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/gfx/canvas_direct2d_unittest.cc b/ui/gfx/canvas_direct2d_unittest.cc
index 9a81f92..a678252 100644
--- a/ui/gfx/canvas_direct2d_unittest.cc
+++ b/ui/gfx/canvas_direct2d_unittest.cc
@@ -17,7 +17,6 @@
#include "ui/gfx/canvas_direct2d.h"
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/codec/png_codec.h"
-#include "ui/gfx/native_theme_win.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/win_util.h"
@@ -214,23 +213,6 @@ TEST(CanvasDirect2D, FillRect) {
canvas.FillRectInt(SK_ColorRED, 20, 20, 100, 100);
}
-TEST(CanvasDirect2D, PlatformPainting) {
- if (!CheckForD2DCompatibility())
- return;
- TestWindow window;
- gfx::CanvasDirect2D canvas(window.rt());
-
- gfx::NativeDrawingContext dc = canvas.BeginPlatformPaint();
-
- // Use the system theme engine to draw a native button. This only works on a
- // GDI device context.
- RECT r = { 20, 20, 220, 80 };
- gfx::NativeThemeWin::instance()->PaintButton(
- dc, BP_PUSHBUTTON, PBS_NORMAL, DFCS_BUTTONPUSH, &r);
-
- canvas.EndPlatformPaint();
-}
-
TEST(CanvasDirect2D, ClipRect) {
if (!CheckForD2DCompatibility())
return;