Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 14 *
15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "core/testing/Internals.h" 27 #include "core/testing/Internals.h"
28 28
29 #include <v8.h>
30 #include <deque>
31 #include <memory>
29 #include "bindings/core/v8/ExceptionMessages.h" 32 #include "bindings/core/v8/ExceptionMessages.h"
30 #include "bindings/core/v8/ExceptionState.h" 33 #include "bindings/core/v8/ExceptionState.h"
31 #include "bindings/core/v8/ScriptFunction.h" 34 #include "bindings/core/v8/ScriptFunction.h"
32 #include "bindings/core/v8/ScriptPromise.h" 35 #include "bindings/core/v8/ScriptPromise.h"
33 #include "bindings/core/v8/ScriptPromiseResolver.h" 36 #include "bindings/core/v8/ScriptPromiseResolver.h"
34 #include "bindings/core/v8/SerializedScriptValue.h" 37 #include "bindings/core/v8/SerializedScriptValue.h"
35 #include "bindings/core/v8/SerializedScriptValueFactory.h" 38 #include "bindings/core/v8/SerializedScriptValueFactory.h"
36 #include "bindings/core/v8/V8IteratorResultValue.h" 39 #include "bindings/core/v8/V8IteratorResultValue.h"
37 #include "bindings/core/v8/V8ThrowException.h" 40 #include "bindings/core/v8/V8ThrowException.h"
38 #include "core/HTMLNames.h" 41 #include "core/HTMLNames.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #include "public/platform/Platform.h" 147 #include "public/platform/Platform.h"
145 #include "public/platform/WebConnectionType.h" 148 #include "public/platform/WebConnectionType.h"
146 #include "public/platform/WebGraphicsContext3DProvider.h" 149 #include "public/platform/WebGraphicsContext3DProvider.h"
147 #include "public/platform/WebLayer.h" 150 #include "public/platform/WebLayer.h"
148 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h " 151 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h "
149 #include "wtf/InstanceCounter.h" 152 #include "wtf/InstanceCounter.h"
150 #include "wtf/Optional.h" 153 #include "wtf/Optional.h"
151 #include "wtf/PtrUtil.h" 154 #include "wtf/PtrUtil.h"
152 #include "wtf/dtoa.h" 155 #include "wtf/dtoa.h"
153 #include "wtf/text/StringBuffer.h" 156 #include "wtf/text/StringBuffer.h"
154 #include <deque>
155 #include <memory>
156 #include <v8.h>
157 157
158 namespace blink { 158 namespace blink {
159 159
160 namespace { 160 namespace {
161 161
162 class UseCounterObserverImpl final : public UseCounter::Observer { 162 class UseCounterObserverImpl final : public UseCounter::Observer {
163 WTF_MAKE_NONCOPYABLE(UseCounterObserverImpl); 163 WTF_MAKE_NONCOPYABLE(UseCounterObserverImpl);
164 164
165 public: 165 public:
166 UseCounterObserverImpl(ScriptPromiseResolver* resolver, 166 UseCounterObserverImpl(ScriptPromiseResolver* resolver,
(...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after
3119 3119
3120 void Internals::crash() { 3120 void Internals::crash() {
3121 CHECK(false) << "Intentional crash"; 3121 CHECK(false) << "Intentional crash";
3122 } 3122 }
3123 3123
3124 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3124 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3125 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3125 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3126 } 3126 }
3127 3127
3128 } // namespace blink 3128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698