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

Side by Side Diff: courgette/bsdiff_memory_unittest.cc

Issue 1961963003: Move //courgette/third_party to subfolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes according to comments Created 4 years, 7 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
« no previous file with comments | « courgette/BUILD.gn ('k') | courgette/courgette.gyp » ('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/bsdiff.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "courgette/base_test_unittest.h" 9 #include "courgette/base_test_unittest.h"
10 #include "courgette/courgette.h" 10 #include "courgette/courgette.h"
11 #include "courgette/streams.h" 11 #include "courgette/streams.h"
12 12
13 class BSDiffMemoryTest : public BaseTest { 13 class BSDiffMemoryTest : public BaseTest {
14 public: 14 public:
15 void GenerateAndTestPatch(const std::string& a, const std::string& b) const; 15 void GenerateAndTestPatch(const std::string& a, const std::string& b) const;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::string file1 = FileContents("setup1.exe"); 118 std::string file1 = FileContents("setup1.exe");
119 std::string file2 = FileContents("setup2.exe"); 119 std::string file2 = FileContents("setup2.exe");
120 GenerateAndTestPatch(file1, file2); 120 GenerateAndTestPatch(file1, file2);
121 } 121 }
122 122
123 TEST_F(BSDiffMemoryTest, TestDifferentElfs) { 123 TEST_F(BSDiffMemoryTest, TestDifferentElfs) {
124 std::string file1 = FileContents("elf-32-1"); 124 std::string file1 = FileContents("elf-32-1");
125 std::string file2 = FileContents("elf-32-2"); 125 std::string file2 = FileContents("elf-32-2");
126 GenerateAndTestPatch(file1, file2); 126 GenerateAndTestPatch(file1, file2);
127 } 127 }
OLDNEW
« no previous file with comments | « courgette/BUILD.gn ('k') | courgette/courgette.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698