| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 ProcessHeap::init(); | 262 ProcessHeap::init(); |
| 263 ThreadState::attachMainThread(); | 263 ThreadState::attachMainThread(); |
| 264 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr); | 264 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr); |
| 265 EventTracer::initialize(); | 265 EventTracer::initialize(); |
| 266 HTTPNames::init(); | 266 HTTPNames::init(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() | 269 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() |
| 270 { | 270 { |
| 271 blink::ThreadState::detachMainThread(); | |
| 272 blink::ProcessHeap::shutdown(); | |
| 273 | |
| 274 // Destroy test platform objects before shutting down WTF layer. | |
| 275 m_testingPlatformSupport.reset(); | |
| 276 m_compositorSupport.reset(); | |
| 277 | |
| 278 WTF::shutdown(); | |
| 279 WTF::Partitions::shutdown(); | |
| 280 | |
| 281 // Now - implicitly destroy m_platform and m_discardableMemoryAllocator. | |
| 282 } | 271 } |
| 283 | 272 |
| 284 } // namespace blink | 273 } // namespace blink |
| OLD | NEW |