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

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

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
OLDNEW
1 // Copyright (c) 2009 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 #include <stdio.h> 5 #include <stdio.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
(...skipping 14 matching lines...) Expand all
26 26
27 namespace { 27 namespace {
28 28
29 // Base class for a safebrowsing database. Derived classes can implement 29 // Base class for a safebrowsing database. Derived classes can implement
30 // different types of tables to compare performance characteristics. 30 // different types of tables to compare performance characteristics.
31 class Database { 31 class Database {
32 public: 32 public:
33 Database() : db_(NULL) { 33 Database() : db_(NULL) {
34 } 34 }
35 35
36 virtual ~Database() { 36 ~Database() {
37 if (db_) { 37 if (db_) {
38 sqlite3_close(db_); 38 sqlite3_close(db_);
39 db_ = NULL; 39 db_ = NULL;
40 } 40 }
41 } 41 }
42 42
43 bool Init(const FilePath& name, bool create) { 43 bool Init(const FilePath& name, bool create) {
44 // get an empty file for the test DB 44 // get an empty file for the test DB
45 FilePath filename; 45 FilePath filename;
46 PathService::Get(base::DIR_TEMP, &filename); 46 PathService::Get(base::DIR_TEMP, &filename);
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Test how long bloom filter creation takes. 534 // Test how long bloom filter creation takes.
535 TEST(SafeBrowsingDatabase, DISABLED_BuildBloomFilter250K) { 535 TEST(SafeBrowsingDatabase, DISABLED_BuildBloomFilter250K) {
536 SafeBrowsingDatabaseTest db(FilePath(FILE_PATH_LITERAL("SafeBrowsing250K"))); 536 SafeBrowsingDatabaseTest db(FilePath(FILE_PATH_LITERAL("SafeBrowsing250K")));
537 db.BuildBloomFilter(); 537 db.BuildBloomFilter();
538 } 538 }
539 539
540 TEST(SafeBrowsingDatabase, DISABLED_BuildBloomFilter500K) { 540 TEST(SafeBrowsingDatabase, DISABLED_BuildBloomFilter500K) {
541 SafeBrowsingDatabaseTest db(FilePath(FILE_PATH_LITERAL("SafeBrowsing500K"))); 541 SafeBrowsingDatabaseTest db(FilePath(FILE_PATH_LITERAL("SafeBrowsing500K")));
542 db.BuildBloomFilter(); 542 db.BuildBloomFilter();
543 } 543 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698