summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/package_properties_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/package_properties_unittest.cc')
-rw-r--r--chrome/installer/util/package_properties_unittest.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/chrome/installer/util/package_properties_unittest.cc b/chrome/installer/util/package_properties_unittest.cc
deleted file mode 100644
index 000cc72..0000000
--- a/chrome/installer/util/package_properties_unittest.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2010 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 "base/logging.h"
-#include "base/win/registry.h"
-#include "chrome/installer/util/google_update_constants.h"
-#include "chrome/installer/util/package_properties.h"
-#include "chrome/installer/util/product_unittest.h"
-#include "chrome/installer/util/util_constants.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using base::win::RegKey;
-using installer::PackageProperties;
-using installer::ChromePackageProperties;
-using installer::ChromiumPackageProperties;
-
-class PackagePropertiesTest : public testing::Test {
- protected:
-};
-
-TEST_F(PackagePropertiesTest, Basic) {
- TempRegKeyOverride::DeleteAllTempKeys();
- ChromePackageProperties chrome_props;
- ChromiumPackageProperties chromium_props;
- PackageProperties* props[] = { &chrome_props, &chromium_props };
- for (size_t i = 0; i < arraysize(props); ++i) {
- std::wstring state_key(props[i]->GetStateKey());
- EXPECT_FALSE(state_key.empty());
- std::wstring version_key(props[i]->GetVersionKey());
- EXPECT_FALSE(version_key.empty());
- if (!props[i]->ReceivesUpdates()) {
- TempRegKeyOverride override(HKEY_CURRENT_USER, L"props");
- RegKey key;
- EXPECT_EQ(ERROR_SUCCESS,
- key.Create(HKEY_CURRENT_USER, state_key.c_str(), KEY_ALL_ACCESS));
- }
- TempRegKeyOverride::DeleteAllTempKeys();
- }
-}