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

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

Issue 2856743002: Clean up bindings/core/v8 (Part 4) (Closed)
Patch Set: Rebase Created 3 years, 7 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/ReadableStreamBytesConsumer.h" 5 #include "modules/fetch/ReadableStreamBytesConsumer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "bindings/core/v8/V8BindingForCore.h" 9 #include "bindings/core/v8/V8BindingForCore.h"
10 #include "bindings/core/v8/V8BindingMacros.h"
11 #include "bindings/core/v8/V8GCController.h" 10 #include "bindings/core/v8/V8GCController.h"
12 #include "core/dom/Document.h" 11 #include "core/dom/Document.h"
13 #include "core/streams/ReadableStreamOperations.h" 12 #include "core/streams/ReadableStreamOperations.h"
14 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
15 #include "modules/fetch/BytesConsumerTestUtil.h" 14 #include "modules/fetch/BytesConsumerTestUtil.h"
16 #include "platform/bindings/ScriptState.h" 15 #include "platform/bindings/ScriptState.h"
16 #include "platform/bindings/V8BindingMacros.h"
17 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
18 #include "platform/testing/UnitTestHelpers.h" 18 #include "platform/testing/UnitTestHelpers.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "v8/include/v8.h" 21 #include "v8/include/v8.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 namespace { 25 namespace {
26 26
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 checkpoint.Call(3); 370 checkpoint.Call(3);
371 testing::RunPendingTasks(); 371 testing::RunPendingTasks();
372 checkpoint.Call(4); 372 checkpoint.Call(4);
373 EXPECT_EQ(PublicState::kErrored, consumer->GetPublicState()); 373 EXPECT_EQ(PublicState::kErrored, consumer->GetPublicState());
374 EXPECT_EQ(Result::kError, consumer->BeginRead(&buffer, &available)); 374 EXPECT_EQ(Result::kError, consumer->BeginRead(&buffer, &available));
375 } 375 }
376 376
377 } // namespace 377 } // namespace
378 378
379 } // namespace blink 379 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698