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 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "chrome/browser/safe_browsing/safe_browsing_store.h" | 8 #include "chrome/browser/safe_browsing/safe_browsing_store.h" |
10 | 9 |
11 #include "crypto/sha2.h" | 10 #include "crypto/sha2.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 // Helper code for testing that a SafeBrowsingStore implementation | 13 // Helper code for testing that a SafeBrowsingStore implementation |
15 // works to spec. | 14 // works to spec. |
16 | 15 |
17 // Helper to make it easy to initialize SBFullHash constants. | 16 // Helper to make it easy to initialize SBFullHash constants. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 SafeBrowsingStoreTestSubKnockout(instance_name); \ | 59 SafeBrowsingStoreTestSubKnockout(instance_name); \ |
61 } \ | 60 } \ |
62 TEST_F(test_fixture, DeleteChunks) { \ | 61 TEST_F(test_fixture, DeleteChunks) { \ |
63 SafeBrowsingStoreTestDeleteChunks(instance_name); \ | 62 SafeBrowsingStoreTestDeleteChunks(instance_name); \ |
64 } \ | 63 } \ |
65 TEST_F(test_fixture, Delete) { \ | 64 TEST_F(test_fixture, Delete) { \ |
66 SafeBrowsingStoreTestDelete(instance_name, filename); \ | 65 SafeBrowsingStoreTestDelete(instance_name, filename); \ |
67 } | 66 } |
68 | 67 |
69 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ | 68 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_UNITTEST_HELPER_H_ |
OLD | NEW |