#ifndef CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_
#define CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_
#include "chrome/browser/profile_resetter/profile_resetter.h"
#include "content/public/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
class ProfileResetterMockObject {
public:
ProfileResetterMockObject();
~ProfileResetterMockObject();
void RunLoop();
void StopLoop();
private:
MOCK_METHOD0(Callback, void(void));
scoped_refptr<content::MessageLoopRunner> runner_;
DISALLOW_COPY_AND_ASSIGN(ProfileResetterMockObject);
};
class ProfileResetterTestBase {
public:
ProfileResetterTestBase();
~ProfileResetterTestBase();
void ResetAndWait(ProfileResetter::ResettableFlags resettable_flags);
void ResetAndWait(ProfileResetter::ResettableFlags resettable_flags,
const std::string& prefs);
protected:
testing::StrictMock<ProfileResetterMockObject> mock_object_;
scoped_ptr<ProfileResetter> resetter_;
private:
DISALLOW_COPY_AND_ASSIGN(ProfileResetterTestBase);
};
#endif