| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 TEST_F(BluetoothEventRouterTest, UnloadExtension) { | 86 TEST_F(BluetoothEventRouterTest, UnloadExtension) { |
| 87 scoped_refptr<const extensions::Extension> extension = | 87 scoped_refptr<const extensions::Extension> extension = |
| 88 extensions::ExtensionBuilder() | 88 extensions::ExtensionBuilder() |
| 89 .SetManifest(extensions::DictionaryBuilder() | 89 .SetManifest(extensions::DictionaryBuilder() |
| 90 .Set("name", "BT event router test") | 90 .Set("name", "BT event router test") |
| 91 .Set("version", "1.0") | 91 .Set("version", "1.0") |
| 92 .Set("manifest_version", 2)) | 92 .Set("manifest_version", 2)) |
| 93 .SetID(kTestExtensionId) | 93 .SetID(kTestExtensionId) |
| 94 .Build(); | 94 .Build(); |
| 95 | 95 |
| 96 ExtensionRegistry::Get(test_profile_.get()) | 96 ExtensionRegistry::Get(test_profile_.get())->TriggerOnUnloaded( |
| 97 ->TriggerOnUnloaded(extension, UnloadedExtensionInfo::REASON_DISABLE); | 97 extension.get(), UnloadedExtensionInfo::REASON_DISABLE); |
| 98 | 98 |
| 99 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1); | 99 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace extensions | 102 } // namespace extensions |
| OLD | NEW |