Commit 945ae751 authored by limasdf's avatar limasdf Committed by Commit bot

Remove deprecated extension notification from ImageLoaderTest

R=kalman@chromium.org
BUG=354046
TEST=extensions_unittests

Review URL: https://codereview.chromium.org/977763002

Cr-Commit-Position: refs/heads/master@{#319144}
parent 4683e5ee
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
#include "base/path_service.h" #include "base/path_service.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "content/public/browser/notification_service.h" #include "content/public/browser/notification_service.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread.h" #include "content/public/test/test_browser_thread.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extensions_browser_client.h" #include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/notification_types.h" #include "extensions/browser/extensions_test.h"
#include "extensions/common/constants.h" #include "extensions/common/constants.h"
#include "extensions/common/extension.h" #include "extensions/common/extension.h"
#include "extensions/common/extension_icon_set.h" #include "extensions/common/extension_icon_set.h"
...@@ -32,7 +34,7 @@ using content::NotificationService; ...@@ -32,7 +34,7 @@ using content::NotificationService;
namespace extensions { namespace extensions {
class ImageLoaderTest : public testing::Test { class ImageLoaderTest : public ExtensionsTest {
public: public:
ImageLoaderTest() ImageLoaderTest()
: image_loaded_count_(0), : image_loaded_count_(0),
...@@ -174,12 +176,8 @@ TEST_F(ImageLoaderTest, DeleteExtensionWhileWaitingForCache) { ...@@ -174,12 +176,8 @@ TEST_F(ImageLoaderTest, DeleteExtensionWhileWaitingForCache) {
EXPECT_EQ(0, image_loaded_count()); EXPECT_EQ(0, image_loaded_count());
// Send out notification the extension was uninstalled. // Send out notification the extension was uninstalled.
UnloadedExtensionInfo details(extension.get(), ExtensionRegistry::Get(browser_context())->TriggerOnUnloaded(
UnloadedExtensionInfo::REASON_UNINSTALL); extension.get(), UnloadedExtensionInfo::REASON_UNINSTALL);
content::NotificationService::current()->Notify(
NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
content::NotificationService::AllSources(),
content::Details<UnloadedExtensionInfo>(&details));
// Chuck the extension, that way if anyone tries to access it we should crash // Chuck the extension, that way if anyone tries to access it we should crash
// or get valgrind errors. // or get valgrind errors.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment