| Index: chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc
|
| diff --git a/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc b/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc
|
| index bc31c453995904570ca9b5257364aedbbd9fefd9..165f571c9049bfb9dab23cd93ca2681d9a269890 100644
|
| --- a/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc
|
| +++ b/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc
|
| @@ -27,6 +27,7 @@ namespace {
|
|
|
| void OnUnpackSuccess(const FilePath& temp_dir,
|
| const FilePath& extension_root,
|
| + const DictionaryValue* original_manifest,
|
| const Extension* extension) {
|
| // Don't delete temp_dir here, we need to do some post op checking.
|
| }
|
| @@ -38,16 +39,17 @@ class MockSandboxedExtensionUnpackerClient
|
| public:
|
| virtual ~MockSandboxedExtensionUnpackerClient() {}
|
|
|
| - MOCK_METHOD3(OnUnpackSuccess,
|
| + MOCK_METHOD4(OnUnpackSuccess,
|
| void(const FilePath& temp_dir,
|
| const FilePath& extension_root,
|
| + const DictionaryValue* original_manifest,
|
| const Extension* extension));
|
|
|
| MOCK_METHOD1(OnUnpackFailure,
|
| void(const std::string& error));
|
|
|
| void DelegateToFake() {
|
| - ON_CALL(*this, OnUnpackSuccess(_, _, _))
|
| + ON_CALL(*this, OnUnpackSuccess(_, _, _, _))
|
| .WillByDefault(Invoke(::OnUnpackSuccess));
|
| }
|
| };
|
| @@ -157,7 +159,7 @@ class SandboxedExtensionUnpackerTest : public testing::Test {
|
| };
|
|
|
| TEST_F(SandboxedExtensionUnpackerTest, NoCatalogsSuccess) {
|
| - EXPECT_CALL(*client_, OnUnpackSuccess(_, _, _));
|
| + EXPECT_CALL(*client_, OnUnpackSuccess(_, _, _, _));
|
| EXPECT_CALL(*client_, OnUnpackFailure(_)).Times(0);
|
|
|
| SetupUnpacker("no_l10n.crx");
|
| @@ -179,7 +181,7 @@ TEST_F(SandboxedExtensionUnpackerTest, NoCatalogsSuccess) {
|
| }
|
|
|
| TEST_F(SandboxedExtensionUnpackerTest, WithCatalogsSuccess) {
|
| - EXPECT_CALL(*client_, OnUnpackSuccess(_, _, _));
|
| + EXPECT_CALL(*client_, OnUnpackSuccess(_, _, _, _));
|
| EXPECT_CALL(*client_, OnUnpackFailure(_)).Times(0);
|
|
|
| SetupUnpacker("good_l10n.crx");
|
|
|