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

Unified Diff: ui/gfx/image_unittest.cc

Issue 6533013: Move ui::gfx::Image out of the ui namespace to be just gfx::Image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/image_unittest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image_unittest.cc
diff --git a/ui/gfx/image_unittest.cc b/ui/gfx/image_unittest.cc
index cb4fd490759bea914ffb9f67a5bfec265767d40a..2325104bb73b3812b24030dc5376f050d89e46bf 100644
--- a/ui/gfx/image_unittest.cc
+++ b/ui/gfx/image_unittest.cc
@@ -19,7 +19,7 @@
namespace {
-using namespace ui::gfx::test;
+using namespace gfx::test;
#if defined(TOOLKIT_VIEWS)
const bool kUsesSkiaNatively = true;
@@ -29,13 +29,13 @@ const bool kUsesSkiaNatively = false;
class ImageTest : public testing::Test {
public:
- size_t GetRepCount(const ui::gfx::Image& image) {
+ size_t GetRepCount(const gfx::Image& image) {
return image.representations_.size();
}
};
TEST_F(ImageTest, SkiaToSkia) {
- ui::gfx::Image image(CreateBitmap());
+ gfx::Image image(CreateBitmap());
const SkBitmap* bitmap = static_cast<const SkBitmap*>(image);
EXPECT_TRUE(bitmap);
EXPECT_FALSE(bitmap->isNull());
@@ -49,7 +49,7 @@ TEST_F(ImageTest, SkiaToSkia) {
}
TEST_F(ImageTest, SkiaToSkiaRef) {
- ui::gfx::Image image(CreateBitmap());
+ gfx::Image image(CreateBitmap());
const SkBitmap& bitmap = static_cast<const SkBitmap&>(image);
EXPECT_FALSE(bitmap.isNull());
@@ -61,7 +61,7 @@ TEST_F(ImageTest, SkiaToSkiaRef) {
}
TEST_F(ImageTest, SkiaToPlatform) {
- ui::gfx::Image image(CreateBitmap());
+ gfx::Image image(CreateBitmap());
const size_t kRepCount = kUsesSkiaNatively ? 1U : 2U;
EXPECT_TRUE(static_cast<PlatformImage>(image));
@@ -73,7 +73,7 @@ TEST_F(ImageTest, SkiaToPlatform) {
}
TEST_F(ImageTest, PlatformToSkia) {
- ui::gfx::Image image(CreatePlatformImage());
+ gfx::Image image(CreatePlatformImage());
const size_t kRepCount = kUsesSkiaNatively ? 1U : 2U;
const SkBitmap* bitmap = static_cast<const SkBitmap*>(image);
@@ -86,7 +86,7 @@ TEST_F(ImageTest, PlatformToSkia) {
}
TEST_F(ImageTest, PlatformToPlatform) {
- ui::gfx::Image image(CreatePlatformImage());
+ gfx::Image image(CreatePlatformImage());
EXPECT_TRUE(static_cast<PlatformImage>(image));
EXPECT_EQ(1U, GetRepCount(image));
@@ -96,7 +96,7 @@ TEST_F(ImageTest, PlatformToPlatform) {
}
TEST_F(ImageTest, CheckSkiaColor) {
- ui::gfx::Image image(CreatePlatformImage());
+ gfx::Image image(CreatePlatformImage());
const SkBitmap& bitmap(image);
SkAutoLockPixels auto_lock(bitmap);
« no previous file with comments | « ui/gfx/image_unittest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698