| Index: chrome/installer/gcapi/gcapi_registry_overriding_test.cc
|
| diff --git a/chrome/installer/gcapi/gcapi_registry_overriding_test.cc b/chrome/installer/gcapi/gcapi_registry_overriding_test.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fb63dd3caebf6b0ae808b3832e36c301a9545cce
|
| --- /dev/null
|
| +++ b/chrome/installer/gcapi/gcapi_registry_overriding_test.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/installer/gcapi/gcapi_registry_overriding_test.h"
|
| +
|
| +#include "base/guid.h"
|
| +#include "base/strings/string16.h"
|
| +#include "base/strings/stringprintf.h"
|
| +#include "base/strings/utf_string_conversions.h"
|
| +
|
| +void GCAPIRegistryOverridingTest::SetUp() {
|
| + // Override keys - this is undone during destruction.
|
| + string16 hkcu_override = base::StringPrintf(
|
| + L"hkcu_override\\%ls", ASCIIToWide(base::GenerateGUID()));
|
| + override_manager_.OverrideRegistry(HKEY_CURRENT_USER, hkcu_override);
|
| + string16 hklm_override = base::StringPrintf(
|
| + L"hklm_override\\%ls", ASCIIToWide(base::GenerateGUID()));
|
| + override_manager_.OverrideRegistry(HKEY_LOCAL_MACHINE, hklm_override);
|
| +}
|
|
|