| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace | 64 } // namespace |
| 65 | 65 |
| 66 int main(int argc, char** argv) | 66 int main(int argc, char** argv) |
| 67 { | 67 { |
| 68 base::CommandLine::Init(argc, argv); | 68 base::CommandLine::Init(argc, argv); |
| 69 | 69 |
| 70 WTF::Partitions::initialize(nullptr); | 70 WTF::Partitions::initialize(nullptr); |
| 71 WTF::setTimeFunctionsForTesting(dummyCurrentTime); | 71 WTF::setTimeFunctionsForTesting(dummyCurrentTime); |
| 72 WTF::initialize(nullptr); | 72 WTF::initialize(); |
| 73 WTF::initializeMainThread(0); | 73 WTF::initializeMainThread(0); |
| 74 | 74 |
| 75 blink::TestingPlatformSupport::Config platformConfig; | 75 blink::TestingPlatformSupport::Config platformConfig; |
| 76 cc_blink::WebCompositorSupportImpl compositorSupport; | 76 cc_blink::WebCompositorSupportImpl compositorSupport; |
| 77 platformConfig.compositorSupport = &compositorSupport; | 77 platformConfig.compositorSupport = &compositorSupport; |
| 78 blink::TestingPlatformSupport platform(platformConfig); | 78 blink::TestingPlatformSupport platform(platformConfig); |
| 79 | 79 |
| 80 blink::Heap::init(); | 80 blink::Heap::init(); |
| 81 blink::ThreadState::attachMainThread(); | 81 blink::ThreadState::attachMainThread(); |
| 82 blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr); | 82 blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 93 | 93 |
| 94 int result = base::LaunchUnitTests(argc, argv, base::Bind(runTestSuite, base
::Unretained(&testSuite))); | 94 int result = base::LaunchUnitTests(argc, argv, base::Bind(runTestSuite, base
::Unretained(&testSuite))); |
| 95 | 95 |
| 96 blink::ThreadState::detachMainThread(); | 96 blink::ThreadState::detachMainThread(); |
| 97 blink::Heap::shutdown(); | 97 blink::Heap::shutdown(); |
| 98 | 98 |
| 99 WTF::shutdown(); | 99 WTF::shutdown(); |
| 100 WTF::Partitions::shutdown(); | 100 WTF::Partitions::shutdown(); |
| 101 return result; | 101 return result; |
| 102 } | 102 } |
| OLD | NEW |