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

Side by Side Diff: components/visitedlink/test/visitedlink_perftest.cc

Issue 19275015: Use a direct include of the shared_memory header in base/, chrome/, components/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <algorithm> 5 #include <algorithm>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/shared_memory.h"
11 #include "base/perftimer.h" 12 #include "base/perftimer.h"
12 #include "base/shared_memory.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/test/test_file_util.h" 14 #include "base/test/test_file_util.h"
15 #include "components/visitedlink/browser/visitedlink_master.h" 15 #include "components/visitedlink/browser/visitedlink_master.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 using base::TimeDelta; 19 using base::TimeDelta;
20 20
21 namespace visitedlink { 21 namespace visitedlink {
22 22
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 cold_sum += cold_load_times[i]; 190 cold_sum += cold_load_times[i];
191 hot_sum += hot_load_times[i]; 191 hot_sum += hot_load_times[i];
192 } 192 }
193 LogPerfResult("Visited_link_cold_load_time", 193 LogPerfResult("Visited_link_cold_load_time",
194 cold_sum / cold_load_times.size(), "ms"); 194 cold_sum / cold_load_times.size(), "ms");
195 LogPerfResult("Visited_link_hot_load_time", 195 LogPerfResult("Visited_link_hot_load_time",
196 hot_sum / hot_load_times.size(), "ms"); 196 hot_sum / hot_load_times.size(), "ms");
197 } 197 }
198 198
199 } // namespace visitedlink 199 } // namespace visitedlink
OLDNEW
« no previous file with comments | « components/visitedlink/renderer/visitedlink_slave.cc ('k') | components/visitedlink/test/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698