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

Side by Side Diff: courgette/bsdiff_memory_unittest.cc

Issue 8477045: Add Elf 32 Support to Courgette. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove debug printf present by mistake. Created 9 years, 1 month 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 | « courgette/assembly_program.cc ('k') | courgette/courgette.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "courgette/third_party/bsdiff.h" 5 #include "courgette/third_party/bsdiff.h"
6 6
7 #include "courgette/base_test_unittest.h" 7 #include "courgette/base_test_unittest.h"
8 #include "courgette/courgette.h" 8 #include "courgette/courgette.h"
9 #include "courgette/streams.h" 9 #include "courgette/streams.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 TEST_F(BSDiffMemoryTest, TestIndenticalDlls) { 110 TEST_F(BSDiffMemoryTest, TestIndenticalDlls) {
111 std::string file1 = FileContents("en-US.dll"); 111 std::string file1 = FileContents("en-US.dll");
112 GenerateAndTestPatch(file1, file1); 112 GenerateAndTestPatch(file1, file1);
113 } 113 }
114 114
115 TEST_F(BSDiffMemoryTest, TestDifferentExes) { 115 TEST_F(BSDiffMemoryTest, TestDifferentExes) {
116 std::string file1 = FileContents("setup1.exe"); 116 std::string file1 = FileContents("setup1.exe");
117 std::string file2 = FileContents("setup2.exe"); 117 std::string file2 = FileContents("setup2.exe");
118 GenerateAndTestPatch(file1, file2); 118 GenerateAndTestPatch(file1, file2);
119 } 119 }
120
121 TEST_F(BSDiffMemoryTest, TestDifferentElfs) {
122 std::string file1 = FileContents("elf-32-1");
123 std::string file2 = FileContents("elf-32-2");
124 GenerateAndTestPatch(file1, file2);
125 }
OLDNEW
« no previous file with comments | « courgette/assembly_program.cc ('k') | courgette/courgette.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698