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

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

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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.
(...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 } 3051 }
3052 3052
3053 ClientRect* Internals::visualRect(Node* node) { 3053 ClientRect* Internals::visualRect(Node* node) {
3054 if (!node || !node->layoutObject()) 3054 if (!node || !node->layoutObject())
3055 return ClientRect::create(); 3055 return ClientRect::create();
3056 3056
3057 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); 3057 return ClientRect::create(FloatRect(node->layoutObject()->visualRect()));
3058 } 3058 }
3059 3059
3060 void Internals::crash() { 3060 void Internals::crash() {
3061 CHECK(false) << "Intentional crash"; 3061 // Intentional crash
3062 CHECK(false);
3062 } 3063 }
3063 3064
3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3065 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3066 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3066 } 3067 }
3067 3068
3068 } // namespace blink 3069 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698