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

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

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/safe_browsing/safe_browsing_store_unittest_helper.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_store_unittest_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 8
9 namespace { 9 namespace {
10 10
11 const int kAddChunk1 = 1; 11 const int kAddChunk1 = 1;
12 const int kAddChunk2 = 3; 12 const int kAddChunk2 = 3;
13 const int kAddChunk3 = 5; 13 const int kAddChunk3 = 5;
14 const int kAddChunk4 = 7; 14 const int kAddChunk4 = 7;
15 // Disjoint chunk numbers for subs to flush out typos. 15 // Disjoint chunk numbers for subs to flush out typos.
16 const int kSubChunk1 = 2; 16 const int kSubChunk1 = 2;
17 const int kSubChunk2 = 4; 17 const int kSubChunk2 = 4;
18 const int kSubChunk3 = 6;
19 18
20 const SBFullHash kHash1 = SBFullHashFromString("one"); 19 const SBFullHash kHash1 = SBFullHashFromString("one");
21 const SBFullHash kHash2 = SBFullHashFromString("two"); 20 const SBFullHash kHash2 = SBFullHashFromString("two");
22 const SBFullHash kHash3 = SBFullHashFromString("three"); 21 const SBFullHash kHash3 = SBFullHashFromString("three");
23 const SBFullHash kHash4 = SBFullHashFromString("four"); 22 const SBFullHash kHash4 = SBFullHashFromString("four");
24 const SBFullHash kHash5 = SBFullHashFromString("five"); 23 const SBFullHash kHash5 = SBFullHashFromString("five");
25 24
26 } // namespace 25 } // namespace
27 26
28 void SafeBrowsingStoreTestEmpty(SafeBrowsingStore* store) { 27 void SafeBrowsingStoreTestEmpty(SafeBrowsingStore* store) {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 341
343 EXPECT_TRUE(store->FinishUpdate(pending_adds, 342 EXPECT_TRUE(store->FinishUpdate(pending_adds,
344 prefix_misses, 343 prefix_misses,
345 &add_prefixes_result, 344 &add_prefixes_result,
346 &add_full_hashes_result)); 345 &add_full_hashes_result));
347 346
348 EXPECT_TRUE(base::PathExists(filename)); 347 EXPECT_TRUE(base::PathExists(filename));
349 EXPECT_TRUE(store->Delete()); 348 EXPECT_TRUE(store->Delete());
350 EXPECT_FALSE(base::PathExists(filename)); 349 EXPECT_FALSE(base::PathExists(filename));
351 } 350 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc ('k') | chrome/browser/sessions/session_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698