• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #include "google/protobuf/arena_test_util.h"
9 
10 #include "absl/log/absl_check.h"
11 
12 
13 #define EXPECT_EQ ABSL_CHECK_EQ
14 
15 namespace google {
16 namespace protobuf {
17 namespace internal {
18 
~NoHeapChecker()19 NoHeapChecker::~NoHeapChecker() {
20   capture_alloc.Unhook();
21   EXPECT_EQ(0, capture_alloc.alloc_count());
22   EXPECT_EQ(0, capture_alloc.free_count());
23 }
24 
25 }  // namespace internal
26 }  // namespace protobuf
27 }  // namespace google
28