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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/fetch/BlobBytesConsumer.h" 5 #include "modules/fetch/BlobBytesConsumer.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/loader/ThreadableLoader.h" 8 #include "core/loader/ThreadableLoader.h"
9 #include "core/testing/DummyPageHolder.h" 9 #include "core/testing/DummyPageHolder.h"
10 #include "modules/fetch/BytesConsumerTestUtil.h" 10 #include "modules/fetch/BytesConsumerTestUtil.h"
11 #include "modules/fetch/DataConsumerHandleTestUtil.h" 11 #include "modules/fetch/DataConsumerHandleTestUtil.h"
12 #include "platform/blob/BlobData.h" 12 #include "platform/blob/BlobData.h"
13 #include "platform/loader/fetch/ResourceError.h" 13 #include "platform/loader/fetch/ResourceError.h"
14 #include "platform/loader/fetch/ResourceResponse.h" 14 #include "platform/loader/fetch/ResourceResponse.h"
15 #include "platform/network/EncodedFormData.h" 15 #include "platform/network/EncodedFormData.h"
16 #include "platform/testing/UnitTestHelpers.h" 16 #include "platform/testing/UnitTestHelpers.h"
17 #include "platform/wtf/Vector.h"
18 #include "platform/wtf/text/WTFString.h"
17 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
18 #include "wtf/Vector.h"
19 #include "wtf/text/WTFString.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace { 23 namespace {
24 24
25 using Command = DataConsumerHandleTestUtil::Command; 25 using Command = DataConsumerHandleTestUtil::Command;
26 using PublicState = BytesConsumer::PublicState; 26 using PublicState = BytesConsumer::PublicState;
27 using ReplayingHandle = DataConsumerHandleTestUtil::ReplayingHandle; 27 using ReplayingHandle = DataConsumerHandleTestUtil::ReplayingHandle;
28 using Result = BytesConsumer::Result; 28 using Result = BytesConsumer::Result;
29 29
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 BlobBytesConsumer* consumer = new BlobBytesConsumer(&GetDocument(), nullptr); 520 BlobBytesConsumer* consumer = new BlobBytesConsumer(&GetDocument(), nullptr);
521 const char* buffer = nullptr; 521 const char* buffer = nullptr;
522 size_t available; 522 size_t available;
523 EXPECT_EQ(BytesConsumer::PublicState::kClosed, consumer->GetPublicState()); 523 EXPECT_EQ(BytesConsumer::PublicState::kClosed, consumer->GetPublicState());
524 EXPECT_EQ(Result::kDone, consumer->BeginRead(&buffer, &available)); 524 EXPECT_EQ(Result::kDone, consumer->BeginRead(&buffer, &available));
525 } 525 }
526 526
527 } // namespace 527 } // namespace
528 528
529 } // namespace blink 529 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.h ('k') | third_party/WebKit/Source/modules/fetch/Body.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698