OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Main entry point for all unit tests. | 5 // Main entry point for all unit tests. |
6 | 6 |
7 #include "rlz_test_helpers.h" | 7 #include "rlz_test_helpers.h" |
8 | 8 |
9 #include "rlz/lib/rlz_lib.h" | 9 #include "rlz/lib/rlz_lib.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #if defined(OS_POSIX) | 68 #if defined(OS_POSIX) |
69 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | 69 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
70 rlz_lib::testing::SetRlzStoreDirectory(temp_dir_.path()); | 70 rlz_lib::testing::SetRlzStoreDirectory(temp_dir_.path()); |
71 #endif // defined(OS_POSIX) | 71 #endif // defined(OS_POSIX) |
72 } | 72 } |
73 | 73 |
74 void RlzLibTestNoMachineState::TearDown() { | 74 void RlzLibTestNoMachineState::TearDown() { |
75 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
76 UndoOverrideRegistryHives(); | 76 UndoOverrideRegistryHives(); |
77 #elif defined(OS_POSIX) | 77 #elif defined(OS_POSIX) |
78 rlz_lib::testing::SetRlzStoreDirectory(FilePath()); | 78 rlz_lib::testing::SetRlzStoreDirectory(base::FilePath()); |
79 #endif // defined(OS_WIN) | 79 #endif // defined(OS_WIN) |
80 } | 80 } |
81 | 81 |
82 void RlzLibTestBase::SetUp() { | 82 void RlzLibTestBase::SetUp() { |
83 RlzLibTestNoMachineState::SetUp(); | 83 RlzLibTestNoMachineState::SetUp(); |
84 #if defined(OS_WIN) | 84 #if defined(OS_WIN) |
85 rlz_lib::CreateMachineState(); | 85 rlz_lib::CreateMachineState(); |
86 #endif // defined(OS_WIN) | 86 #endif // defined(OS_WIN) |
87 } | 87 } |
OLD | NEW |