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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "core/loader/ThreadableLoader.h" 5 #include "core/loader/ThreadableLoader.h"
6 6
7 #include <memory>
7 #include "core/dom/ExecutionContextTask.h" 8 #include "core/dom/ExecutionContextTask.h"
8 #include "core/loader/DocumentThreadableLoader.h" 9 #include "core/loader/DocumentThreadableLoader.h"
9 #include "core/loader/ThreadableLoaderClient.h" 10 #include "core/loader/ThreadableLoaderClient.h"
10 #include "core/loader/WorkerThreadableLoader.h" 11 #include "core/loader/WorkerThreadableLoader.h"
11 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
12 #include "core/workers/WorkerLoaderProxy.h" 13 #include "core/workers/WorkerLoaderProxy.h"
13 #include "core/workers/WorkerThreadTestHelper.h" 14 #include "core/workers/WorkerThreadTestHelper.h"
14 #include "platform/WaitableEvent.h" 15 #include "platform/WaitableEvent.h"
15 #include "platform/geometry/IntSize.h" 16 #include "platform/geometry/IntSize.h"
16 #include "platform/loader/fetch/MemoryCache.h" 17 #include "platform/loader/fetch/MemoryCache.h"
17 #include "platform/loader/fetch/ResourceLoaderOptions.h" 18 #include "platform/loader/fetch/ResourceLoaderOptions.h"
18 #include "platform/network/ResourceError.h" 19 #include "platform/network/ResourceError.h"
19 #include "platform/network/ResourceRequest.h" 20 #include "platform/network/ResourceRequest.h"
20 #include "platform/network/ResourceResponse.h" 21 #include "platform/network/ResourceResponse.h"
21 #include "platform/network/ResourceTimingInfo.h" 22 #include "platform/network/ResourceTimingInfo.h"
22 #include "platform/testing/URLTestHelpers.h" 23 #include "platform/testing/URLTestHelpers.h"
23 #include "platform/testing/UnitTestHelpers.h" 24 #include "platform/testing/UnitTestHelpers.h"
24 #include "platform/weborigin/KURL.h" 25 #include "platform/weborigin/KURL.h"
25 #include "platform/weborigin/SecurityOrigin.h" 26 #include "platform/weborigin/SecurityOrigin.h"
26 #include "public/platform/Platform.h" 27 #include "public/platform/Platform.h"
27 #include "public/platform/WebURLLoadTiming.h" 28 #include "public/platform/WebURLLoadTiming.h"
28 #include "public/platform/WebURLLoaderMockFactory.h" 29 #include "public/platform/WebURLLoaderMockFactory.h"
29 #include "public/platform/WebURLResponse.h" 30 #include "public/platform/WebURLResponse.h"
30 #include "testing/gmock/include/gmock/gmock.h" 31 #include "testing/gmock/include/gmock/gmock.h"
31 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
32 #include "wtf/Assertions.h" 33 #include "wtf/Assertions.h"
33 #include "wtf/Functional.h" 34 #include "wtf/Functional.h"
34 #include "wtf/PtrUtil.h" 35 #include "wtf/PtrUtil.h"
35 #include "wtf/RefPtr.h" 36 #include "wtf/RefPtr.h"
36 #include <memory>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 namespace { 40 namespace {
41 41
42 using ::testing::_; 42 using ::testing::_;
43 using ::testing::InSequence; 43 using ::testing::InSequence;
44 using ::testing::InvokeWithoutArgs; 44 using ::testing::InvokeWithoutArgs;
45 using ::testing::StrEq; 45 using ::testing::StrEq;
46 using ::testing::Truly; 46 using ::testing::Truly;
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 // test is not saying that didFailAccessControlCheck should be dispatched 883 // test is not saying that didFailAccessControlCheck should be dispatched
884 // synchronously, but is saying that even when a response is served 884 // synchronously, but is saying that even when a response is served
885 // synchronously it should not lead to a crash. 885 // synchronously it should not lead to a crash.
886 startLoader(KURL(KURL(), "about:blank")); 886 startLoader(KURL(KURL(), "about:blank"));
887 callCheckpoint(2); 887 callCheckpoint(2);
888 } 888 }
889 889
890 } // namespace 890 } // namespace
891 891
892 } // namespace blink 892 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698