OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 // Helper functions used by the tests. |
| 6 |
| 7 #ifndef RLZ_TEST_RLZ_TEST_HELPERS_H |
| 8 #define RLZ_TEST_RLZ_TEST_HELPERS_H |
| 9 |
| 10 #include "base/compiler_specific.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 |
| 13 #if defined(OS_MACOSX) |
| 14 #include "base/scoped_temp_dir.h" |
| 15 #endif |
| 16 |
| 17 class RlzLibTestNoMachineState : public ::testing::Test { |
| 18 protected: |
| 19 virtual void SetUp() OVERRIDE; |
| 20 virtual void TearDown() OVERRIDE; |
| 21 |
| 22 |
| 23 #if defined(OS_MACOSX) |
| 24 ScopedTempDir temp_dir_; |
| 25 #endif |
| 26 }; |
| 27 |
| 28 class RlzLibTestBase : public RlzLibTestNoMachineState { |
| 29 virtual void SetUp() OVERRIDE; |
| 30 }; |
| 31 |
| 32 |
| 33 #endif // RLZ_TEST_RLZ_TEST_HELPERS_H |
OLD | NEW |