summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/image/image_family_unittest.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-20 10:33:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 11:45:12 +0000
commitbe59a35641616a4cf23c4a13fa0632624b021c1b (patch)
tree9da183258bdf9cc413f7562079d25ace6955467f /chromium/ui/gfx/image/image_family_unittest.cc
parentd702e4b6a64574e97fc7df8fe3238cde70242080 (diff)
downloadqtwebengine-chromium-be59a35641616a4cf23c4a13fa0632624b021c1b.tar.gz
BASELINE: Update Chromium to 62.0.3202.101
Change-Id: I2d5eca8117600df6d331f6166ab24d943d9814ac Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/ui/gfx/image/image_family_unittest.cc')
-rw-r--r--chromium/ui/gfx/image/image_family_unittest.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/ui/gfx/image/image_family_unittest.cc b/chromium/ui/gfx/image/image_family_unittest.cc
index 88d52981400..e3973d037ac 100644
--- a/chromium/ui/gfx/image/image_family_unittest.cc
+++ b/chromium/ui/gfx/image/image_family_unittest.cc
@@ -69,6 +69,26 @@ TEST_F(ImageFamilyTest, Clear) {
EXPECT_TRUE(image_family_.empty());
}
+TEST_F(ImageFamilyTest, MoveConstructor) {
+ gfx::ImageFamily family(std::move(image_family_));
+ EXPECT_TRUE(image_family_.empty());
+ EXPECT_FALSE(family.empty());
+}
+
+TEST_F(ImageFamilyTest, MoveAssignment) {
+ gfx::ImageFamily family;
+ EXPECT_TRUE(family.empty());
+ family = std::move(image_family_);
+ EXPECT_TRUE(image_family_.empty());
+ EXPECT_FALSE(family.empty());
+}
+
+TEST_F(ImageFamilyTest, Clone) {
+ gfx::ImageFamily family = image_family_.Clone();
+ EXPECT_FALSE(image_family_.empty());
+ EXPECT_FALSE(family.empty());
+}
+
// Tests iteration over an ImageFamily.
TEST_F(ImageFamilyTest, Iteration) {
gfx::ImageFamily::const_iterator it = image_family_.begin();