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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp

Issue 2516493002: requestIdleCallback: Yield for high priority work (Closed)
Patch Set: Added a test Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 std::unique_ptr<WebScrollbarLayer> 125 std::unique_ptr<WebScrollbarLayer>
126 TestingCompositorSupport::createSolidColorScrollbarLayer( 126 TestingCompositorSupport::createSolidColorScrollbarLayer(
127 WebScrollbar::Orientation, 127 WebScrollbar::Orientation,
128 int thumbThickness, 128 int thumbThickness,
129 int trackStart, 129 int trackStart,
130 bool isLeftSideVerticalScrollbar) { 130 bool isLeftSideVerticalScrollbar) {
131 return nullptr; 131 return nullptr;
132 } 132 }
133 133
134 TestingPlatformMockScheduler::TestingPlatformMockScheduler() {}
135 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() {}
136
134 TestingPlatformSupport::TestingPlatformSupport() 137 TestingPlatformSupport::TestingPlatformSupport()
135 : TestingPlatformSupport(TestingPlatformSupport::Config()) {} 138 : TestingPlatformSupport(TestingPlatformSupport::Config()) {}
136 139
137 TestingPlatformSupport::TestingPlatformSupport(const Config& config) 140 TestingPlatformSupport::TestingPlatformSupport(const Config& config)
138 : m_config(config), 141 : m_config(config),
139 m_oldPlatform(Platform::current()), 142 m_oldPlatform(Platform::current()),
140 m_interfaceProvider(new TestingInterfaceProvider) { 143 m_interfaceProvider(new TestingInterfaceProvider) {
141 ASSERT(m_oldPlatform); 144 ASSERT(m_oldPlatform);
142 Platform::setCurrentPlatformForTesting(this); 145 Platform::setCurrentPlatformForTesting(this);
143 } 146 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 ProcessHeap::init(); 338 ProcessHeap::init();
336 ThreadState::attachMainThread(); 339 ThreadState::attachMainThread();
337 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr, 340 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr,
338 nullptr); 341 nullptr);
339 HTTPNames::init(); 342 HTTPNames::init();
340 } 343 }
341 344
342 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() {} 345 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() {}
343 346
344 } // namespace blink 347 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698