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

Side by Side Diff: third_party/re2/util/test.h

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 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
« no previous file with comments | « third_party/re2/util/strutil.cc ('k') | third_party/re2/util/test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #ifndef RE2_UTIL_TEST_H__ 5 #ifndef RE2_UTIL_TEST_H__
6 #define RE2_UTIL_TEST_H__ 6 #define RE2_UTIL_TEST_H__
7 7
8 #include "util/util.h" 8 #include "util/util.h"
9 #include "util/flags.h" 9 #include "util/flags.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // TODO(rsc): Do a better job. 25 // TODO(rsc): Do a better job.
26 #define EXPECT_EQ CHECK_EQ 26 #define EXPECT_EQ CHECK_EQ
27 #define EXPECT_TRUE CHECK 27 #define EXPECT_TRUE CHECK
28 #define EXPECT_LT CHECK_LT 28 #define EXPECT_LT CHECK_LT
29 #define EXPECT_GT CHECK_GT 29 #define EXPECT_GT CHECK_GT
30 #define EXPECT_LE CHECK_LE 30 #define EXPECT_LE CHECK_LE
31 #define EXPECT_GE CHECK_GE 31 #define EXPECT_GE CHECK_GE
32 #define EXPECT_FALSE(x) CHECK(!(x)) 32 #define EXPECT_FALSE(x) CHECK(!(x))
33 33
34 #define ARRAYSIZE arraysize
35
36 #define EXPECT_TRUE_M(x, y) CHECK(x) << (y)
37 #define EXPECT_FALSE_M(x, y) CHECK(!(x)) << (y)
38 #define ASSERT_TRUE_M(x, y) CHECK(x) << (y)
39 #define ASSERT_EQUALS(x, y) CHECK_EQ(x, y)
40
41 const bool UsingMallocCounter = false;
42 namespace testing { 34 namespace testing {
43 class MallocCounter { 35 class MallocCounter {
44 public: 36 public:
45 MallocCounter(int x) { } 37 MallocCounter(int x) {}
46 static const int THIS_THREAD_ONLY = 0; 38 static const int THIS_THREAD_ONLY = 0;
47 long long HeapGrowth() { return 0; } 39 long long HeapGrowth() { return 0; }
48 long long PeakHeapGrowth() { return 0; } 40 long long PeakHeapGrowth() { return 0; }
49 void Reset() { } 41 void Reset() {}
50 }; 42 };
51 } // namespace testing 43 } // namespace testing
52 44
53 namespace re2 {
54 int64 VirtualProcessSize();
55 } // namespace re2
56
57 #endif // RE2_UTIL_TEST_H__ 45 #endif // RE2_UTIL_TEST_H__
OLDNEW
« no previous file with comments | « third_party/re2/util/strutil.cc ('k') | third_party/re2/util/test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698