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

Side by Side Diff: rlz/lib/crc8_unittest.cc

Issue 10659022: Revert 144071 - Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « rlz/lib/crc8.cc ('k') | rlz/lib/financial_ping.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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 // Uniitest for data encryption functions. 5 // Uniitest for data encryption functions.
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 EXPECT_TRUE(crc == data[i].external_crc); 42 EXPECT_TRUE(crc == data[i].external_crc);
43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
44 EXPECT_TRUE(matches); 44 EXPECT_TRUE(matches);
45 45
46 // Corrupt string and see if CRC still matches. 46 // Corrupt string and see if CRC still matches.
47 data[i].string[data[i].random_byte] = data[i].corrupt_value; 47 data[i].string[data[i].random_byte] = data[i].corrupt_value;
48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
49 EXPECT_FALSE(matches); 49 EXPECT_FALSE(matches);
50 } 50 }
51 } 51 }
OLDNEW
« no previous file with comments | « rlz/lib/crc8.cc ('k') | rlz/lib/financial_ping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698