diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 18:33:30 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 18:33:30 +0000 |
commit | 5bfb1eb0a729e8d1adb448b0a84580564a883d2e (patch) | |
tree | bdac0bcedc000d43f2b65fedac764bfdfa4b7c60 /chrome/browser/extensions/test_extension_loader.h | |
parent | d8cc3a679233604df94571b882ac912614cb2bbe (diff) | |
download | chromium_src-5bfb1eb0a729e8d1adb448b0a84580564a883d2e.zip chromium_src-5bfb1eb0a729e8d1adb448b0a84580564a883d2e.tar.gz chromium_src-5bfb1eb0a729e8d1adb448b0a84580564a883d2e.tar.bz2 |
Try one more time to check in http://codereview.chromium.org/60112
Added this test to the list of skipped purify tests as it is
experience the same issue as ExtensionView test.
I also found an unrelated memory leak and created a patch
separately: http://codereview.chromium.org/63073
Review URL: http://codereview.chromium.org/63075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/test_extension_loader.h')
-rwxr-xr-x | chrome/browser/extensions/test_extension_loader.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/browser/extensions/test_extension_loader.h b/chrome/browser/extensions/test_extension_loader.h new file mode 100755 index 0000000..4fb74d9 --- /dev/null +++ b/chrome/browser/extensions/test_extension_loader.h @@ -0,0 +1,35 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ +#define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ + +#include "chrome/browser/extensions/extension.h" +#include "chrome/common/notification_observer.h" +#include "chrome/common/notification_registrar.h" + +class Extension; +class FilePath; +class Profile; + +class TestExtensionLoader : public NotificationObserver { + public: + explicit TestExtensionLoader(Profile* profile); + + Extension* Load(const char* extension_id, const FilePath& path); + + virtual void Observe(NotificationType type, + const NotificationSource& source, + const NotificationDetails& details); + + private: + Profile* profile_; + Extension* extension_; + NotificationRegistrar registrar_; + std::string loading_extension_id_; + + DISALLOW_COPY_AND_ASSIGN(TestExtensionLoader); +}; + +#endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ |