| 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. | 5 // Unit tests for the SafeBrowsing storage system. |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 TEST(SafeBrowsingDatabase, DISABLED_DatabaseOldLotsofDeletesIO) { | 472 TEST(SafeBrowsingDatabase, DISABLED_DatabaseOldLotsofDeletesIO) { |
| 473 std::vector<ChunksInfo> chunks; | 473 std::vector<ChunksInfo> chunks; |
| 474 std::vector<SBChunkDelete>* deletes = new std::vector<SBChunkDelete>; | 474 std::vector<SBChunkDelete>* deletes = new std::vector<SBChunkDelete>; |
| 475 SBChunkDelete del; | 475 SBChunkDelete del; |
| 476 del.is_sub_del = false; | 476 del.is_sub_del = false; |
| 477 del.list_name = "goog-malware-shavar"; | 477 del.list_name = "goog-malware-shavar"; |
| 478 del.chunk_del.push_back(ChunkRange(3539, 3579)); | 478 del.chunk_del.push_back(ChunkRange(3539, 3579)); |
| 479 deletes->push_back(del); | 479 deletes->push_back(del); |
| 480 PeformUpdate(L"old\\SafeBrowsing", chunks, deletes); | 480 PeformUpdate(L"old\\SafeBrowsing", chunks, deletes); |
| 481 } | 481 } |
| 482 | |
| OLD | NEW |