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

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

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)
Patch Set: . Created 3 years, 9 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/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/V8Binding.h"
10 #include "bindings/core/v8/V8BindingMacros.h" 11 #include "bindings/core/v8/V8BindingMacros.h"
11 #include "bindings/core/v8/V8GCController.h" 12 #include "bindings/core/v8/V8GCController.h"
12 #include "core/dom/Document.h" 13 #include "core/dom/Document.h"
13 #include "core/streams/ReadableStreamOperations.h" 14 #include "core/streams/ReadableStreamOperations.h"
14 #include "core/testing/DummyPageHolder.h" 15 #include "core/testing/DummyPageHolder.h"
15 #include "modules/fetch/BytesConsumerTestUtil.h" 16 #include "modules/fetch/BytesConsumerTestUtil.h"
16 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
17 #include "platform/testing/UnitTestHelpers.h" 18 #include "platform/testing/UnitTestHelpers.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 checkpoint.Call(3); 370 checkpoint.Call(3);
370 testing::runPendingTasks(); 371 testing::runPendingTasks();
371 checkpoint.Call(4); 372 checkpoint.Call(4);
372 EXPECT_EQ(PublicState::Errored, consumer->getPublicState()); 373 EXPECT_EQ(PublicState::Errored, consumer->getPublicState());
373 EXPECT_EQ(Result::Error, consumer->beginRead(&buffer, &available)); 374 EXPECT_EQ(Result::Error, consumer->beginRead(&buffer, &available));
374 } 375 }
375 376
376 } // namespace 377 } // namespace
377 378
378 } // namespace blink 379 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698