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

Side by Side Diff: components/component_updater/test/component_patcher_unittest.cc

Issue 590333002: Replace usage of basictypes.h with a combination of stdint.h and base/macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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 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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/macros.h"
12 #include "base/path_service.h" 13 #include "base/path_service.h"
13 #include "base/run_loop.h" 14 #include "base/run_loop.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "components/component_updater/component_patcher.h" 16 #include "components/component_updater/component_patcher.h"
16 #include "components/component_updater/component_patcher_operation.h" 17 #include "components/component_updater/component_patcher_operation.h"
17 #include "components/component_updater/component_updater_service.h" 18 #include "components/component_updater/component_updater_service.h"
18 #include "components/component_updater/test/component_patcher_unittest.h" 19 #include "components/component_updater/test/component_patcher_unittest.h"
19 #include "components/component_updater/test/test_installer.h" 20 #include "components/component_updater/test/test_installer.h"
20 #include "courgette/courgette.h" 21 #include "courgette/courgette.h"
21 #include "courgette/third_party/bsdiff.h" 22 #include "courgette/third_party/bsdiff.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 EXPECT_EQ(true, callback.called_); 199 EXPECT_EQ(true, callback.called_);
199 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_); 200 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_);
200 EXPECT_EQ(0, callback.extra_code_); 201 EXPECT_EQ(0, callback.extra_code_);
201 EXPECT_TRUE(base::ContentsEqual( 202 EXPECT_TRUE(base::ContentsEqual(
202 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")), 203 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")),
203 test_file("binary_output.bin"))); 204 test_file("binary_output.bin")));
204 } 205 }
205 206
206 } // namespace component_updater 207 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698