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

Side by Side Diff: base/trace_event/heap_profiler_heap_dump_writer_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string> 6 #include <string>
7 7
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/trace_event/heap_profiler_allocation_context.h" 11 #include "base/trace_event/heap_profiler_allocation_context.h"
12 #include "base/trace_event/heap_profiler_heap_dump_writer.h" 12 #include "base/trace_event/heap_profiler_heap_dump_writer.h"
13 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" 13 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h"
14 #include "base/trace_event/trace_event_argument.h" 14 #include "base/trace_event/trace_event_argument.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/googletest/include/gtest/gtest.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Define all strings once, because the deduplicator requires pointer equality, 20 // Define all strings once, because the deduplicator requires pointer equality,
21 // and string interning is unreliable. 21 // and string interning is unreliable.
22 const char kBrowserMain[] = "BrowserMain"; 22 const char kBrowserMain[] = "BrowserMain";
23 const char kRendererMain[] = "RendererMain"; 23 const char kRendererMain[] = "RendererMain";
24 const char kCreateWidget[] = "CreateWidget"; 24 const char kCreateWidget[] = "CreateWidget";
25 const char kInitialize[] = "Initialize"; 25 const char kInitialize[] = "Initialize";
26 26
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 unknown_type_seen++; 222 unknown_type_seen++;
223 } 223 }
224 } 224 }
225 225
226 ASSERT_EQ(1, unknown_type_seen); 226 ASSERT_EQ(1, unknown_type_seen);
227 ASSERT_EQ(1, empty_backtrace_seen); 227 ASSERT_EQ(1, empty_backtrace_seen);
228 } 228 }
229 229
230 } // namespace trace_event 230 } // namespace trace_event
231 } // namespace base 231 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698