OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 #include "platform/testing/TestingPlatformSupport.h" | 31 #include "platform/testing/TestingPlatformSupport.h" |
32 | 32 |
33 #include "base/command_line.h" | 33 #include "base/command_line.h" |
34 #include "base/memory/discardable_memory_allocator.h" | 34 #include "base/memory/discardable_memory_allocator.h" |
35 #include "base/memory/ptr_util.h" | 35 #include "base/memory/ptr_util.h" |
36 #include "base/metrics/statistics_recorder.h" | 36 #include "base/metrics/statistics_recorder.h" |
37 #include "base/test/icu_test_util.h" | 37 #include "base/test/icu_test_util.h" |
38 #include "base/test/test_discardable_memory_allocator.h" | 38 #include "base/test/test_discardable_memory_allocator.h" |
39 #include "cc/blink/web_compositor_support_impl.h" | 39 #include "cc/blink/web_compositor_support_impl.h" |
40 #include "cc/test/ordered_simple_task_runner.h" | 40 #include "cc/test/ordered_simple_task_runner.h" |
41 #include "platform/EventTracer.h" | |
42 #include "platform/HTTPNames.h" | 41 #include "platform/HTTPNames.h" |
43 #include "platform/heap/Heap.h" | 42 #include "platform/heap/Heap.h" |
44 #include "platform/scheduler/base/test_time_source.h" | 43 #include "platform/scheduler/base/test_time_source.h" |
45 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" | 44 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" |
46 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" | 45 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" |
47 #include "wtf/CryptographicallyRandomNumber.h" | 46 #include "wtf/CryptographicallyRandomNumber.h" |
48 #include "wtf/CurrentTime.h" | 47 #include "wtf/CurrentTime.h" |
49 #include "wtf/PtrUtil.h" | 48 #include "wtf/PtrUtil.h" |
50 #include "wtf/WTF.h" | 49 #include "wtf/WTF.h" |
51 #include "wtf/allocator/Partitions.h" | 50 #include "wtf/allocator/Partitions.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 WTF::setTimeFunctionsForTesting(dummyCurrentTime); | 246 WTF::setTimeFunctionsForTesting(dummyCurrentTime); |
248 WTF::initialize(nullptr); | 247 WTF::initialize(nullptr); |
249 | 248 |
250 m_compositorSupport = wrapUnique(new cc_blink::WebCompositorSupportImpl); | 249 m_compositorSupport = wrapUnique(new cc_blink::WebCompositorSupportImpl); |
251 m_testingPlatformConfig.compositorSupport = m_compositorSupport.get(); | 250 m_testingPlatformConfig.compositorSupport = m_compositorSupport.get(); |
252 m_testingPlatformSupport = wrapUnique(new TestingPlatformSupport(m_testingPl
atformConfig)); | 251 m_testingPlatformSupport = wrapUnique(new TestingPlatformSupport(m_testingPl
atformConfig)); |
253 | 252 |
254 ProcessHeap::init(); | 253 ProcessHeap::init(); |
255 ThreadState::attachMainThread(); | 254 ThreadState::attachMainThread(); |
256 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr,
nullptr); | 255 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr,
nullptr); |
257 EventTracer::initialize(); | |
258 HTTPNames::init(); | 256 HTTPNames::init(); |
259 } | 257 } |
260 | 258 |
261 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() | 259 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() |
262 { | 260 { |
263 } | 261 } |
264 | 262 |
265 } // namespace blink | 263 } // namespace blink |
OLD | NEW |