OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "base/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/test/test_reg_util_win.h" | 9 #include "base/test/test_reg_util_win.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/googletest/include/gtest/gtest.h" |
12 | 12 |
13 namespace registry_util { | 13 namespace registry_util { |
14 | 14 |
15 namespace { | 15 namespace { |
16 const wchar_t kTestKeyPath[] = L"Software\\Chromium\\Foo\\Baz\\TestKey"; | 16 const wchar_t kTestKeyPath[] = L"Software\\Chromium\\Foo\\Baz\\TestKey"; |
17 const wchar_t kTestValueName[] = L"TestValue"; | 17 const wchar_t kTestValueName[] = L"TestValue"; |
18 } // namespace | 18 } // namespace |
19 | 19 |
20 class RegistryOverrideManagerTest : public testing::Test { | 20 class RegistryOverrideManagerTest : public testing::Test { |
21 protected: | 21 protected: |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 manager_.reset(); | 121 manager_.reset(); |
122 | 122 |
123 AssertKeyAbsent(path_garbage); | 123 AssertKeyAbsent(path_garbage); |
124 AssertKeyAbsent(path_very_stale); | 124 AssertKeyAbsent(path_very_stale); |
125 AssertKeyAbsent(path_stale); | 125 AssertKeyAbsent(path_stale); |
126 AssertKeyExists(path_current); | 126 AssertKeyExists(path_current); |
127 AssertKeyExists(path_future); | 127 AssertKeyExists(path_future); |
128 } | 128 } |
129 | 129 |
130 } // namespace registry_util | 130 } // namespace registry_util |
OLD | NEW |