| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Unit tests for the SafeBrowsing storage system (specific to the | 5 // Unit tests for the SafeBrowsing storage system (specific to the |
| 6 // SafeBrowsingDatabaseImpl implementation). | 6 // SafeBrowsingDatabaseImpl implementation). |
| 7 | 7 |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 // Prefixes with no full results are misses. | 217 // Prefixes with no full results are misses. |
| 218 EXPECT_EQ(database.prefix_miss_cache_.size(), 2); | 218 EXPECT_EQ(database.prefix_miss_cache_.size(), 2); |
| 219 | 219 |
| 220 // Update the database. | 220 // Update the database. |
| 221 PopulateDatabaseForCacheTest(&database); | 221 PopulateDatabaseForCacheTest(&database); |
| 222 | 222 |
| 223 // Prefix miss cache should be cleared. | 223 // Prefix miss cache should be cleared. |
| 224 EXPECT_EQ(database.prefix_miss_cache_.size(), 0); | 224 EXPECT_EQ(database.prefix_miss_cache_.size(), 0); |
| 225 } | 225 } |
| 226 | |
| 227 | |
| 228 | |
| OLD | NEW |