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