OLD | NEW |
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 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/md5.h" | 11 #include "base/md5.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 std::vector<SBAddFullHash> add_hashes; | 906 std::vector<SBAddFullHash> add_hashes; |
907 EXPECT_TRUE(store_->GetAddFullHashes(&add_hashes)); | 907 EXPECT_TRUE(store_->GetAddFullHashes(&add_hashes)); |
908 ASSERT_EQ(1U, add_hashes.size()); | 908 ASSERT_EQ(1U, add_hashes.size()); |
909 EXPECT_EQ(kAddChunk1, add_hashes[0].chunk_id); | 909 EXPECT_EQ(kAddChunk1, add_hashes[0].chunk_id); |
910 EXPECT_TRUE(SBFullHashEqual(kHash2, add_hashes[0].full_hash)); | 910 EXPECT_TRUE(SBFullHashEqual(kHash2, add_hashes[0].full_hash)); |
911 } | 911 } |
912 } | 912 } |
913 #endif | 913 #endif |
914 | 914 |
915 } // namespace safe_browsing | 915 } // namespace safe_browsing |
OLD | NEW |