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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 }; | 68 }; |
69 | 69 |
70 } // namespace | 70 } // namespace |
71 | 71 |
72 int main(int argc, char** argv) | 72 int main(int argc, char** argv) |
73 { | 73 { |
74 base::CommandLine::Init(argc, argv); | 74 base::CommandLine::Init(argc, argv); |
75 | 75 |
76 WTF::Partitions::initialize(nullptr); | 76 WTF::Partitions::initialize(nullptr); |
77 WTF::setTimeFunctionsForTesting(dummyCurrentTime); | 77 WTF::setTimeFunctionsForTesting(dummyCurrentTime); |
78 WTF::initialize(nullptr); | 78 WTF::initialize(); |
79 WTF::initializeMainThread(0); | 79 WTF::initializeMainThread(0); |
80 int result = 0; | 80 int result = 0; |
81 { | 81 { |
82 OwnPtr<DummyPlatform> platform = adoptPtr(new DummyPlatform); | 82 OwnPtr<DummyPlatform> platform = adoptPtr(new DummyPlatform); |
83 blink::Platform::initialize(platform.get()); | 83 blink::Platform::initialize(platform.get()); |
84 { | 84 { |
85 blink::TestingPlatformSupport::Config platformConfig; | 85 blink::TestingPlatformSupport::Config platformConfig; |
86 cc_blink::WebCompositorSupportImpl compositorSupport; | 86 cc_blink::WebCompositorSupportImpl compositorSupport; |
87 platformConfig.compositorSupport = &compositorSupport; | 87 platformConfig.compositorSupport = &compositorSupport; |
88 blink::TestingPlatformSupport platform(platformConfig); | 88 blink::TestingPlatformSupport platform(platformConfig); |
(...skipping 15 matching lines...) Expand all Loading... |
104 blink::ThreadState::detachMainThread(); | 104 blink::ThreadState::detachMainThread(); |
105 blink::Heap::shutdown(); | 105 blink::Heap::shutdown(); |
106 } | 106 } |
107 blink::Platform::shutdown(); | 107 blink::Platform::shutdown(); |
108 } | 108 } |
109 | 109 |
110 WTF::shutdown(); | 110 WTF::shutdown(); |
111 WTF::Partitions::shutdown(); | 111 WTF::Partitions::shutdown(); |
112 return result; | 112 return result; |
113 } | 113 } |
OLD | NEW |