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

Side by Side Diff: components/update_client/component_patcher_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 | « components/update_client/component_patcher_unittest.h ('k') | courgette/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "components/update_client/component_patcher.h" 15 #include "components/update_client/component_patcher.h"
16 #include "components/update_client/component_patcher_operation.h" 16 #include "components/update_client/component_patcher_operation.h"
17 #include "components/update_client/component_patcher_unittest.h" 17 #include "components/update_client/component_patcher_unittest.h"
18 #include "components/update_client/test_installer.h" 18 #include "components/update_client/test_installer.h"
19 #include "courgette/courgette.h" 19 #include "courgette/courgette.h"
20 #include "courgette/third_party/bsdiff.h" 20 #include "courgette/third_party/bsdiff/bsdiff.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace { 23 namespace {
24 24
25 class TestCallback { 25 class TestCallback {
26 public: 26 public:
27 TestCallback(); 27 TestCallback();
28 virtual ~TestCallback() {} 28 virtual ~TestCallback() {}
29 void Set(update_client::ComponentUnpacker::Error error, int extra_code); 29 void Set(update_client::ComponentUnpacker::Error error, int extra_code);
30 30
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 EXPECT_EQ(true, callback.called_); 195 EXPECT_EQ(true, callback.called_);
196 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_); 196 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_);
197 EXPECT_EQ(0, callback.extra_code_); 197 EXPECT_EQ(0, callback.extra_code_);
198 EXPECT_TRUE(base::ContentsEqual( 198 EXPECT_TRUE(base::ContentsEqual(
199 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")), 199 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")),
200 test_file("binary_output.bin"))); 200 test_file("binary_output.bin")));
201 } 201 }
202 202
203 } // namespace update_client 203 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/component_patcher_unittest.h ('k') | courgette/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698