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

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

Issue 1546033002: Switch to standard integer types in base/trace_event/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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 | « base/trace_event/trace_config.cc ('k') | base/trace_event/trace_event.h » ('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 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 <stddef.h>
6
7 #include "base/macros.h"
5 #include "base/trace_event/memory_dump_manager.h" 8 #include "base/trace_event/memory_dump_manager.h"
6 #include "base/trace_event/trace_config.h" 9 #include "base/trace_event/trace_config.h"
7 #include "base/trace_event/trace_config_memory_test_util.h" 10 #include "base/trace_event/trace_config_memory_test_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
9 12
10 namespace base { 13 namespace base {
11 namespace trace_event { 14 namespace trace_event {
12 15
13 namespace { 16 namespace {
14 17
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 525
523 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { 526 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) {
524 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); 527 TraceConfig tc(MemoryDumpManager::kTraceCategory, "");
525 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); 528 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory));
526 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); 529 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config"));
527 EXPECT_EQ(2u, tc.memory_dump_config_.size()); 530 EXPECT_EQ(2u, tc.memory_dump_config_.size());
528 } 531 }
529 532
530 } // namespace trace_event 533 } // namespace trace_event
531 } // namespace base 534 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/trace_config.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698