product_unittest.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
1// Copyright (c) 2011 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ 6#define CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ 7 8#include <windows.h> 9 10#include "base/file_util.h" 11#include "base/files/file_path.h" 12#include "base/files/scoped_temp_dir.h" 13#include "base/path_service.h" 14#include "testing/gtest/include/gtest/gtest.h" 15 16class TestWithTempDir : public testing::Test { 17 protected: 18 virtual void SetUp(); 19 virtual void TearDown(); 20 21 base::ScopedTempDir test_dir_; 22}; 23 24class TestWithTempDirAndDeleteTempOverrideKeys : public TestWithTempDir { 25 protected: 26 virtual void SetUp(); 27 virtual void TearDown(); 28}; 29 30#endif // CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ 31