#ifndef EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_
#define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "content/public/test/test_browser_thread.h"
#include "extensions/browser/value_store/value_store.h"
#include "testing/gtest/include/gtest/gtest.h"
typedef ValueStore* (*ValueStoreTestParam)(const base::FilePath& file_path);
class ValueStoreTest : public testing::TestWithParam<ValueStoreTestParam> {
public:
ValueStoreTest();
virtual ~ValueStoreTest();
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
protected:
scoped_ptr<ValueStore> storage_;
std::string key1_;
std::string key2_;
std::string key3_;
scoped_ptr<base::Value> val1_;
scoped_ptr<base::Value> val2_;
scoped_ptr<base::Value> val3_;
std::vector<std::string> empty_list_;
std::vector<std::string> list1_;
std::vector<std::string> list2_;
std::vector<std::string> list3_;
std::vector<std::string> list12_;
std::vector<std::string> list13_;
std::vector<std::string> list123_;
std::set<std::string> empty_set_;
std::set<std::string> set1_;
std::set<std::string> set2_;
std::set<std::string> set3_;
std::set<std::string> set12_;
std::set<std::string> set13_;
std::set<std::string> set123_;
scoped_ptr<base::DictionaryValue> empty_dict_;
scoped_ptr<base::DictionaryValue> dict1_;
scoped_ptr<base::DictionaryValue> dict3_;
scoped_ptr<base::DictionaryValue> dict12_;
scoped_ptr<base::DictionaryValue> dict123_;
private:
base::ScopedTempDir temp_dir_;
base::MessageLoop message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
};
#endif