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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp

Issue 2815053002: Rewrite references to "wtf/" to "platform/wtf/" in core/loader. (Closed)
Patch Set: Created 3 years, 8 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) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 #include "platform/loader/fetch/MemoryCache.h" 41 #include "platform/loader/fetch/MemoryCache.h"
42 #include "platform/loader/fetch/ResourceFetcher.h" 42 #include "platform/loader/fetch/ResourceFetcher.h"
43 #include "platform/loader/fetch/ResourceLoader.h" 43 #include "platform/loader/fetch/ResourceLoader.h"
44 #include "platform/loader/fetch/UniqueIdentifier.h" 44 #include "platform/loader/fetch/UniqueIdentifier.h"
45 #include "platform/loader/testing/MockFetchContext.h" 45 #include "platform/loader/testing/MockFetchContext.h"
46 #include "platform/loader/testing/MockResourceClient.h" 46 #include "platform/loader/testing/MockResourceClient.h"
47 #include "platform/scheduler/test/fake_web_task_runner.h" 47 #include "platform/scheduler/test/fake_web_task_runner.h"
48 #include "platform/testing/ScopedMockedURL.h" 48 #include "platform/testing/ScopedMockedURL.h"
49 #include "platform/testing/TestingPlatformSupport.h" 49 #include "platform/testing/TestingPlatformSupport.h"
50 #include "platform/testing/UnitTestHelpers.h" 50 #include "platform/testing/UnitTestHelpers.h"
51 #include "platform/wtf/PtrUtil.h"
52 #include "platform/wtf/text/Base64.h"
51 #include "public/platform/Platform.h" 53 #include "public/platform/Platform.h"
52 #include "public/platform/WebCachePolicy.h" 54 #include "public/platform/WebCachePolicy.h"
53 #include "public/platform/WebURL.h" 55 #include "public/platform/WebURL.h"
54 #include "public/platform/WebURLLoaderMockFactory.h" 56 #include "public/platform/WebURLLoaderMockFactory.h"
55 #include "public/platform/WebURLResponse.h" 57 #include "public/platform/WebURLResponse.h"
56 #include "testing/gtest/include/gtest/gtest.h" 58 #include "testing/gtest/include/gtest/gtest.h"
57 #include "wtf/PtrUtil.h"
58 #include "wtf/text/Base64.h"
59 59
60 namespace blink { 60 namespace blink {
61 61
62 using testing::ScopedMockedURLLoad; 62 using testing::ScopedMockedURLLoad;
63 63
64 namespace { 64 namespace {
65 65
66 // An image of size 1x1. 66 // An image of size 1x1.
67 constexpr unsigned char kJpegImage[] = { 67 constexpr unsigned char kJpegImage[] = {
68 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 68 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01,
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 EXPECT_TRUE(observer->ImageNotifyFinishedCalled()); 1595 EXPECT_TRUE(observer->ImageNotifyFinishedCalled());
1596 EXPECT_TRUE(image_resource->GetContent()->GetImage()->IsBitmapImage()); 1596 EXPECT_TRUE(image_resource->GetContent()->GetImage()->IsBitmapImage());
1597 EXPECT_EQ(50, image_resource->GetContent()->GetImage()->width()); 1597 EXPECT_EQ(50, image_resource->GetContent()->GetImage()->width());
1598 EXPECT_EQ(50, image_resource->GetContent()->GetImage()->height()); 1598 EXPECT_EQ(50, image_resource->GetContent()->GetImage()->height());
1599 1599
1600 WTF::SetTimeFunctionsForTesting(nullptr); 1600 WTF::SetTimeFunctionsForTesting(nullptr);
1601 } 1601 }
1602 1602
1603 } // namespace 1603 } // namespace
1604 } // namespace blink 1604 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698