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/nacl/nacl_validation_db.h" | 5 #include "components/nacl/loader/nacl_validation_db.h" |
6 #include "chrome/nacl/nacl_validation_query.h" | 6 #include "components/nacl/loader/nacl_validation_query.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 // This test makes sure that validation signature generation is performed | 9 // This test makes sure that validation signature generation is performed |
10 // correctly. In effect, this means that we are checking all of the data | 10 // correctly. In effect, this means that we are checking all of the data |
11 // (and no other data) we are passing the signature generator affects the final | 11 // (and no other data) we are passing the signature generator affects the final |
12 // signature. To avoid tying the tests to a particular implementation, each | 12 // signature. To avoid tying the tests to a particular implementation, each |
13 // test generates two signatures and compares them rather than trying to compare | 13 // test generates two signatures and compares them rather than trying to compare |
14 // against a specified signature. | 14 // against a specified signature. |
15 | 15 |
16 namespace { | 16 namespace { |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 query1->query->AddData(kShortData, sizeof(kShortData)); | 274 query1->query->AddData(kShortData, sizeof(kShortData)); |
275 query1->query->QueryKnownToValidate(); | 275 query1->query->QueryKnownToValidate(); |
276 | 276 |
277 query2->query->AddData(kShortData, sizeof(kShortData)); | 277 query2->query->AddData(kShortData, sizeof(kShortData)); |
278 query2->query->QueryKnownToValidate(); | 278 query2->query->QueryKnownToValidate(); |
279 | 279 |
280 AssertQueryDifferent(); | 280 AssertQueryDifferent(); |
281 } | 281 } |
282 | 282 |
283 } | 283 } |
OLD | NEW |