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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp

Issue 2798863003: Rewrite references to "wtf/" to "platform/wtf/" in platform/image-decoders. (Closed)
Patch Set: Remove unused RefPtr.h. 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/image-decoders/ImageDecoderTestHelpers.h" 5 #include "platform/image-decoders/ImageDecoderTestHelpers.h"
6 6
7 #include <memory>
7 #include "platform/SharedBuffer.h" 8 #include "platform/SharedBuffer.h"
8 #include "platform/image-decoders/ImageFrame.h" 9 #include "platform/image-decoders/ImageFrame.h"
9 #include "platform/testing/UnitTestHelpers.h" 10 #include "platform/testing/UnitTestHelpers.h"
11 #include "platform/wtf/StringHasher.h"
12 #include "platform/wtf/text/StringBuilder.h"
10 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
11 #include "wtf/StringHasher.h"
12 #include "wtf/text/StringBuilder.h"
13 #include <memory>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 PassRefPtr<SharedBuffer> readFile(const char* fileName) { 17 PassRefPtr<SharedBuffer> readFile(const char* fileName) {
18 String filePath = testing::blinkRootDir(); 18 String filePath = testing::blinkRootDir();
19 filePath.append(fileName); 19 filePath.append(fileName);
20 return testing::readFromFile(filePath); 20 return testing::readFromFile(filePath);
21 } 21 }
22 22
23 PassRefPtr<SharedBuffer> readFile(const char* dir, const char* fileName) { 23 PassRefPtr<SharedBuffer> readFile(const char* dir, const char* fileName) {
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 size_t frameCount = decoderA->frameCount(); 573 size_t frameCount = decoderA->frameCount();
574 ASSERT_EQ(frameCount, decoderB->frameCount()); 574 ASSERT_EQ(frameCount, decoderB->frameCount());
575 575
576 for (size_t i = 0; i < frameCount; ++i) { 576 for (size_t i = 0; i < frameCount; ++i) {
577 verifyFramesMatch(file, decoderA->frameBufferAtIndex(i), 577 verifyFramesMatch(file, decoderA->frameBufferAtIndex(i),
578 decoderB->frameBufferAtIndex(i)); 578 decoderB->frameBufferAtIndex(i));
579 } 579 }
580 } 580 }
581 581
582 } // namespace blink 582 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698