Revert of Re-enabled contenteditable and text-changed tests after content editable...
[chromium-blink-merge.git] / base / check_example.cc
blob4b3f4287dbf1455257dc067c4cda057d481e2e89
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is meant for analyzing the code generated by the CHECK
6 // macros in a small executable file that's easy to disassemble.
8 #include "base/logging.h"
10 // An official build shouldn't generate code to print out messages for
11 // the CHECK* macros, nor should it have the strings in the
12 // executable.
14 void DoCheck(bool b) {
15 CHECK(b) << "DoCheck " << b;
18 void DoCheckEq(int x, int y) {
19 CHECK_EQ(x, y);
22 int main(int argc, const char* argv[]) {
23 DoCheck(argc > 1);
24 DoCheckEq(argc, 1);