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

Side by Side Diff: Source/platform/graphics/OpaqueRectTrackingContentLayerDelegateTest.cpp

Issue 476683002: Cleanup namespace usage in platform/graphics/[G-S]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 17 matching lines...) Expand all
28 28
29 #include "platform/geometry/IntRect.h" 29 #include "platform/geometry/IntRect.h"
30 #include "platform/graphics/Color.h" 30 #include "platform/graphics/Color.h"
31 #include "platform/graphics/GraphicsContext.h" 31 #include "platform/graphics/GraphicsContext.h"
32 #include "public/platform/WebFloatRect.h" 32 #include "public/platform/WebFloatRect.h"
33 #include "public/platform/WebRect.h" 33 #include "public/platform/WebRect.h"
34 #include "skia/ext/platform_canvas.h" 34 #include "skia/ext/platform_canvas.h"
35 35
36 #include <gtest/gtest.h> 36 #include <gtest/gtest.h>
37 37
38 using blink::WebRect;
39 using blink::WebFloatRect;
40 using namespace blink; 38 using namespace blink;
41 39
42 namespace { 40 namespace {
43 41
44 struct PaintCallback { 42 struct PaintCallback {
45 virtual void operator()(GraphicsContext&, const IntRect&) = 0; 43 virtual void operator()(GraphicsContext&, const IntRect&) = 0;
46 }; 44 };
47 45
48 class TestLayerPainterChromium : public GraphicsContextPainter { 46 class TestLayerPainterChromium : public GraphicsContextPainter {
49 public: 47 public:
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 TestLayerPainterChromium painter(fillPartial); 186 TestLayerPainterChromium painter(fillPartial);
189 OpaqueRectTrackingContentLayerDelegate delegate(&painter); 187 OpaqueRectTrackingContentLayerDelegate delegate(&painter);
190 188
191 WebFloatRect opaqueRect; 189 WebFloatRect opaqueRect;
192 WebRect contentRect(11, 12, 389, 388); 190 WebRect contentRect(11, 12, 389, 388);
193 delegate.paintContents(skCanvas(), contentRect, false, opaqueRect); 191 delegate.paintContents(skCanvas(), contentRect, false, opaqueRect);
194 EXPECT_EQ_RECT(WebFloatRect(partialRect.x(), partialRect.y(), partialRect.wi dth(), partialRect.height()), opaqueRect); 192 EXPECT_EQ_RECT(WebFloatRect(partialRect.x(), partialRect.y(), partialRect.wi dth(), partialRect.height()), opaqueRect);
195 } 193 }
196 194
197 } // namespace 195 } // namespace
OLDNEW
« no previous file with comments | « Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp ('k') | Source/platform/graphics/Path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698