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

Side by Side Diff: base/trace_event/trace_config_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 "base/trace_event/memory_dump_manager.h" 5 #include "base/trace_event/memory_dump_manager.h"
6 #include "base/trace_event/trace_config.h" 6 #include "base/trace_event/trace_config.h"
7 #include "base/trace_event/trace_config_memory_test_util.h" 7 #include "base/trace_event/trace_config_memory_test_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/googletest/include/gtest/gtest.h"
9 9
10 namespace base { 10 namespace base {
11 namespace trace_event { 11 namespace trace_event {
12 12
13 namespace { 13 namespace {
14 14
15 const char kDefaultTraceConfigString[] = 15 const char kDefaultTraceConfigString[] =
16 "{" 16 "{"
17 "\"enable_argument_filter\":false," 17 "\"enable_argument_filter\":false,"
18 "\"enable_sampling\":false," 18 "\"enable_sampling\":false,"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { 517 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) {
518 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); 518 TraceConfig tc(MemoryDumpManager::kTraceCategory, "");
519 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); 519 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory));
520 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); 520 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config"));
521 EXPECT_EQ(2u, tc.memory_dump_config_.size()); 521 EXPECT_EQ(2u, tc.memory_dump_config_.size());
522 } 522 }
523 523
524 } // namespace trace_event 524 } // namespace trace_event
525 } // namespace base 525 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_totals_dump_provider_unittest.cc ('k') | base/trace_event/trace_event_argument_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698