OLD | NEW |
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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/memory/scoped_temp_dir.h" | |
8 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/scoped_temp_dir.h" |
| 9 #include "base/scoped_temp_dir.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "base/memory/scoped_temp_dir.h" | |
11 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" | 11 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" |
12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
15 #include "chrome/common/extensions/extension_unpacker.h" | 15 #include "chrome/common/extensions/extension_unpacker.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 | 19 |
20 namespace errors = extension_manifest_errors; | 20 namespace errors = extension_manifest_errors; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 OnUnpackSucceeded(); | 203 OnUnpackSucceeded(); |
204 | 204 |
205 // Check that there is newer _locales/en_US/messages.json file. | 205 // Check that there is newer _locales/en_US/messages.json file. |
206 base::PlatformFileInfo new_info; | 206 base::PlatformFileInfo new_info; |
207 EXPECT_TRUE(file_util::GetFileInfo(messages_file, &new_info)); | 207 EXPECT_TRUE(file_util::GetFileInfo(messages_file, &new_info)); |
208 | 208 |
209 EXPECT_TRUE(new_info.last_modified > old_info.last_modified); | 209 EXPECT_TRUE(new_info.last_modified > old_info.last_modified); |
210 | 210 |
211 ASSERT_TRUE(TempFilesRemoved()); | 211 ASSERT_TRUE(TempFilesRemoved()); |
212 } | 212 } |
OLD | NEW |