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

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

Issue 486843004: Change base/file_utils.h includes to base/files/file_utils.h in chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad merge Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/safe_browsing/safe_browsing_database.h" 7 #include "chrome/browser/safe_browsing/safe_browsing_database.h"
8 8
9 #include "base/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/sha1.h" 14 #include "base/sha1.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "chrome/browser/safe_browsing/chunk.pb.h" 18 #include "chrome/browser/safe_browsing/chunk.pb.h"
19 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" 19 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h"
(...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 GURL(std::string("http://") + kExampleCollision), 2129 GURL(std::string("http://") + kExampleCollision),
2130 &prefix_hits, &cache_hits)); 2130 &prefix_hits, &cache_hits));
2131 ASSERT_EQ(1U, prefix_hits.size()); 2131 ASSERT_EQ(1U, prefix_hits.size());
2132 EXPECT_EQ(SBPrefixForString(kExampleCollision), prefix_hits[0]); 2132 EXPECT_EQ(SBPrefixForString(kExampleCollision), prefix_hits[0]);
2133 EXPECT_TRUE(cache_hits.empty()); 2133 EXPECT_TRUE(cache_hits.empty());
2134 2134
2135 // This prefix collides, but no full hash match. 2135 // This prefix collides, but no full hash match.
2136 EXPECT_FALSE(database_->ContainsBrowseUrl( 2136 EXPECT_FALSE(database_->ContainsBrowseUrl(
2137 GURL(std::string("http://") + kExampleFine), &prefix_hits, &cache_hits)); 2137 GURL(std::string("http://") + kExampleFine), &prefix_hits, &cache_hits));
2138 } 2138 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database.cc ('k') | chrome/browser/safe_browsing/safe_browsing_store_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698