| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 WTF::setAlwaysZeroRandomSourceForTesting(); | 61 WTF::setAlwaysZeroRandomSourceForTesting(); |
| 62 WTF::initialize(CurrentTime, CurrentTime, nullptr); | 62 WTF::initialize(CurrentTime, CurrentTime, nullptr); |
| 63 WTF::initializeMainThread(0); | 63 WTF::initializeMainThread(0); |
| 64 | 64 |
| 65 blink::TestingPlatformSupport::Config platformConfig; | 65 blink::TestingPlatformSupport::Config platformConfig; |
| 66 cc_blink::WebCompositorSupportImpl compositorSupport; | 66 cc_blink::WebCompositorSupportImpl compositorSupport; |
| 67 platformConfig.compositorSupport = &compositorSupport; | 67 platformConfig.compositorSupport = &compositorSupport; |
| 68 blink::TestingPlatformSupport platform(platformConfig); | 68 blink::TestingPlatformSupport platform(platformConfig); |
| 69 | 69 |
| 70 blink::Heap::init(); | 70 blink::Heap::init(); |
| 71 blink::ThreadState::attachMainThread(); | 71 blink::ThreadState::prepareForMainThread(); |
| 72 blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr); | 72 blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr); |
| 73 blink::EventTracer::initialize(); | 73 blink::EventTracer::initialize(); |
| 74 | 74 |
| 75 blink::HTTPNames::init(); | 75 blink::HTTPNames::init(); |
| 76 | 76 |
| 77 base::TestSuite testSuite(argc, argv); | 77 base::TestSuite testSuite(argc, argv); |
| 78 int result = base::LaunchUnitTests(argc, argv, base::Bind(runTestSuite, base
::Unretained(&testSuite))); | 78 int result = base::LaunchUnitTests(argc, argv, base::Bind(runTestSuite, base
::Unretained(&testSuite))); |
| 79 | 79 |
| 80 blink::ThreadState::detachMainThread(); | 80 blink::ThreadState::detachMainThread(); |
| 81 blink::Heap::shutdown(); | 81 blink::Heap::shutdown(); |
| 82 | 82 |
| 83 WTF::shutdown(); | 83 WTF::shutdown(); |
| 84 WTF::Partitions::shutdown(); | 84 WTF::Partitions::shutdown(); |
| 85 return result; | 85 return result; |
| 86 } | 86 } |
| OLD | NEW |