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

Side by Side Diff: components/nacl/loader/nacl_validation_query_unittest.cc

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create a zygote folder Created 7 years, 5 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
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 #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
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 }
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_validation_query.cc ('k') | components/nacl/zygote/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698