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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master 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 "core/timing/Performance.h" 5 #include "core/timing/Performance.h"
6 6
7 #include "bindings/core/v8/PerformanceObserverCallback.h" 7 #include "bindings/core/v8/PerformanceObserverCallback.h"
8 #include "bindings/core/v8/V8BindingForTesting.h" 8 #include "bindings/core/v8/V8BindingForTesting.h"
9 #include "core/dom/TaskRunnerHelper.h" 9 #include "core/dom/TaskRunnerHelper.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
11 #include "core/testing/NullExecutionContext.h" 11 #include "core/testing/NullExecutionContext.h"
12 #include "core/timing/PerformanceBase.h" 12 #include "core/timing/PerformanceBase.h"
13 #include "core/timing/PerformanceLongTaskTiming.h" 13 #include "core/timing/PerformanceLongTaskTiming.h"
14 #include "core/timing/PerformanceObserver.h" 14 #include "core/timing/PerformanceObserver.h"
15 #include "core/timing/PerformanceObserverInit.h" 15 #include "core/timing/PerformanceObserverInit.h"
16 #include "platform/network/ResourceResponse.h" 16 #include "platform/loader/fetch/ResourceResponse.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class TestPerformanceBase : public PerformanceBase { 21 class TestPerformanceBase : public PerformanceBase {
22 public: 22 public:
23 explicit TestPerformanceBase(ScriptState* scriptState) 23 explicit TestPerformanceBase(ScriptState* scriptState)
24 : PerformanceBase( 24 : PerformanceBase(
25 0, 25 0,
26 TaskRunnerHelper::get(TaskType::PerformanceTimeline, scriptState)) { 26 TaskRunnerHelper::get(TaskType::PerformanceTimeline, scriptState)) {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 // When cross-origin redirect opts in. 195 // When cross-origin redirect opts in.
196 redirectChain.back().setHTTPHeaderField(HTTPNames::Timing_Allow_Origin, 196 redirectChain.back().setHTTPHeaderField(HTTPNames::Timing_Allow_Origin,
197 originDomain); 197 originDomain);
198 EXPECT_TRUE(allowsTimingRedirect(redirectChain, finalResponse, 198 EXPECT_TRUE(allowsTimingRedirect(redirectChain, finalResponse,
199 *securityOrigin.get(), 199 *securityOrigin.get(),
200 getExecutionContext())); 200 getExecutionContext()));
201 } 201 }
202 202
203 } // namespace blink 203 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698