OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/precache/content/precache_manager.h" | 5 #include "components/precache/content/precache_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/bind.h" | 13 #include "base/bind.h" |
13 #include "base/callback.h" | 14 #include "base/callback.h" |
14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
15 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
16 #include "base/location.h" | 17 #include "base/location.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "base/test/histogram_tester.h" | 19 #include "base/test/histogram_tester.h" |
19 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
20 #include "components/history/core/browser/history_constants.h" | 21 #include "components/history/core/browser/history_constants.h" |
21 #include "components/history/core/browser/history_service.h" | 22 #include "components/history/core/browser/history_service.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 expected_histogram_count_map["Precache.Saved"] += 2; | 426 expected_histogram_count_map["Precache.Saved"] += 2; |
426 | 427 |
427 base::MessageLoop::current()->RunUntilIdle(); | 428 base::MessageLoop::current()->RunUntilIdle(); |
428 EXPECT_THAT(histograms_.GetTotalCountsForPrefix("Precache."), | 429 EXPECT_THAT(histograms_.GetTotalCountsForPrefix("Precache."), |
429 ContainerEq(expected_histogram_count_map)); | 430 ContainerEq(expected_histogram_count_map)); |
430 } | 431 } |
431 | 432 |
432 } // namespace | 433 } // namespace |
433 | 434 |
434 } // namespace precache | 435 } // namespace precache |
OLD | NEW |