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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_database_unittest.cc

Issue 8177: Disable a long running test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 std::wstring path = L"old"; 633 std::wstring path = L"old";
634 file_util::AppendToPath(&path, L"updates"); 634 file_util::AppendToPath(&path, L"updates");
635 return path.c_str(); 635 return path.c_str();
636 } 636 }
637 637
638 } // namespace 638 } // namespace
639 639
640 // Counts the IO needed for the initial update of a database. 640 // Counts the IO needed for the initial update of a database.
641 // test\data\safe_browsing\download_update.py was used to fetch the add/sub 641 // test\data\safe_browsing\download_update.py was used to fetch the add/sub
642 // chunks that are read, in order to get repeatable runs. 642 // chunks that are read, in order to get repeatable runs.
643 TEST(SafeBrowsingDatabase, DatabaseInitialIO) { 643 TEST(SafeBrowsingDatabase, DISABLED_DatabaseInitialIO) {
644 UpdateDatabase(L"", L"", L"initial"); 644 UpdateDatabase(L"", L"", L"initial");
645 } 645 }
646 646
647 // TODO(port): For now on Linux the test below would fail with error below: 647 // TODO(port): For now on Linux the test below would fail with error below:
648 // [1004/201323:FATAL:browser/safe_browsing/safe_browsing_database_impl.cc(712)] 648 // [1004/201323:FATAL:browser/safe_browsing/safe_browsing_database_impl.cc(712)]
649 // Check failed: false. 649 // Check failed: false.
650 // 650 //
651 // Counts the IO needed to update a month old database. 651 // Counts the IO needed to update a month old database.
652 // The data files were generated by running "..\download_update.py postdata" 652 // The data files were generated by running "..\download_update.py postdata"
653 // in the "safe_browsing\old" directory. 653 // in the "safe_browsing\old" directory.
(...skipping 24 matching lines...) Expand all
678 TEST(SafeBrowsingDatabase, DISABLED_DatabaseOldLotsofDeletesIO) { 678 TEST(SafeBrowsingDatabase, DISABLED_DatabaseOldLotsofDeletesIO) {
679 std::vector<ChunksInfo> chunks; 679 std::vector<ChunksInfo> chunks;
680 std::vector<SBChunkDelete>* deletes = new std::vector<SBChunkDelete>; 680 std::vector<SBChunkDelete>* deletes = new std::vector<SBChunkDelete>;
681 SBChunkDelete del; 681 SBChunkDelete del;
682 del.is_sub_del = false; 682 del.is_sub_del = false;
683 del.list_name = "goog-malware-shavar"; 683 del.list_name = "goog-malware-shavar";
684 del.chunk_del.push_back(ChunkRange(3539, 3579)); 684 del.chunk_del.push_back(ChunkRange(3539, 3579));
685 deletes->push_back(del); 685 deletes->push_back(del);
686 PeformUpdate(GetOldSafeBrowsingPath(), chunks, deletes); 686 PeformUpdate(GetOldSafeBrowsingPath(), chunks, deletes);
687 } 687 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698