| OLD | NEW |
| 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/prefix_set.h" | 5 #include "chrome/browser/safe_browsing/prefix_set.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> |
| 8 | 9 |
| 9 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/md5.h" | 12 #include "base/md5.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 14 #include "base/scoped_temp_dir.h" | 15 #include "base/scoped_temp_dir.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 17 | 18 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 if (delta > 0xFFFF) { | 449 if (delta > 0xFFFF) { |
| 449 EXPECT_FALSE(prefix_set.IsDeltaAt(i)); | 450 EXPECT_FALSE(prefix_set.IsDeltaAt(i)); |
| 450 } else { | 451 } else { |
| 451 ASSERT_TRUE(prefix_set.IsDeltaAt(i)); | 452 ASSERT_TRUE(prefix_set.IsDeltaAt(i)); |
| 452 EXPECT_EQ(delta, prefix_set.DeltaAt(i)); | 453 EXPECT_EQ(delta, prefix_set.DeltaAt(i)); |
| 453 } | 454 } |
| 454 } | 455 } |
| 455 } | 456 } |
| 456 | 457 |
| 457 } // namespace | 458 } // namespace |
| OLD | NEW |