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

Side by Side Diff: base/metrics/stats_table_unittest.cc

Issue 20265004: Update include paths in base for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge ToT Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « base/metrics/stats_table.cc ('k') | base/process.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/memory/shared_memory.h" 5 #include "base/memory/shared_memory.h"
6 #include "base/metrics/stats_counters.h" 6 #include "base/metrics/stats_counters.h"
7 #include "base/metrics/stats_table.h" 7 #include "base/metrics/stats_table.h"
8 #include "base/process/kill.h"
8 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
9 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
11 #include "base/test/multiprocess_test.h" 12 #include "base/test/multiprocess_test.h"
12 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
13 #include "base/threading/simple_thread.h" 14 #include "base/threading/simple_thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/multiprocess_func_list.h" 16 #include "testing/multiprocess_func_list.h"
16 17
17 namespace base { 18 namespace base {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 PlatformThread::Sleep(kDuration); 415 PlatformThread::Sleep(kDuration);
415 } 416 }
416 EXPECT_LE(kDuration.InMilliseconds() * 2, table.GetCounterValue("t:foo")); 417 EXPECT_LE(kDuration.InMilliseconds() * 2, table.GetCounterValue("t:foo"));
417 EXPECT_LE(kDuration.InMilliseconds() * 2, table.GetCounterValue("t:bar")); 418 EXPECT_LE(kDuration.InMilliseconds() * 2, table.GetCounterValue("t:bar"));
418 EXPECT_EQ(2, table.GetCounterValue("c:bar")); 419 EXPECT_EQ(2, table.GetCounterValue("c:bar"));
419 420
420 DeleteShmem(kTableName); 421 DeleteShmem(kTableName);
421 } 422 }
422 423
423 } // namespace base 424 } // namespace base
OLDNEW
« no previous file with comments | « base/metrics/stats_table.cc ('k') | base/process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698