OLD | NEW |
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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/port.h" | 8 #include "base/port.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "net/base/cache_type.h" | 15 #include "net/base/cache_type.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
(...skipping 3493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3510 void* iter = NULL; | 3510 void* iter = NULL; |
3511 size_t count = 0; | 3511 size_t count = 0; |
3512 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); | 3512 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); |
3513 cache_->EndEnumeration(&iter); | 3513 cache_->EndEnumeration(&iter); |
3514 | 3514 |
3515 EXPECT_EQ(key_pool.size(), count); | 3515 EXPECT_EQ(key_pool.size(), count); |
3516 EXPECT_TRUE(keys_to_match.empty()); | 3516 EXPECT_TRUE(keys_to_match.empty()); |
3517 } | 3517 } |
3518 | 3518 |
3519 #endif // defined(OS_POSIX) | 3519 #endif // defined(OS_POSIX) |
OLD | NEW |