| 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 // Unit tests for master preferences related methods. | 5 // Unit tests for master preferences related methods. |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/installer/util/master_preferences.h" | 13 #include "chrome/installer/util/master_preferences.h" |
| 14 #include "chrome/installer/util/master_preferences_constants.h" | 14 #include "chrome/installer/util/master_preferences_constants.h" |
| 15 #include "chrome/installer/util/util_constants.h" | 15 #include "chrome/installer/util/util_constants.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 class MasterPreferencesTest : public testing::Test { | 19 class MasterPreferencesTest : public testing::Test { |
| 20 protected: | 20 protected: |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 prefs.GetBool( | 426 prefs.GetBool( |
| 427 installer::master_preferences::kDoNotCreateQuickLaunchShortcut, | 427 installer::master_preferences::kDoNotCreateQuickLaunchShortcut, |
| 428 &do_not_create_quick_launch_shortcut); | 428 &do_not_create_quick_launch_shortcut); |
| 429 prefs.GetBool( | 429 prefs.GetBool( |
| 430 installer::master_preferences::kDoNotCreateTaskbarShortcut, | 430 installer::master_preferences::kDoNotCreateTaskbarShortcut, |
| 431 &do_not_create_taskbar_shortcut); | 431 &do_not_create_taskbar_shortcut); |
| 432 EXPECT_FALSE(do_not_create_desktop_shortcut); | 432 EXPECT_FALSE(do_not_create_desktop_shortcut); |
| 433 EXPECT_FALSE(do_not_create_quick_launch_shortcut); | 433 EXPECT_FALSE(do_not_create_quick_launch_shortcut); |
| 434 EXPECT_FALSE(do_not_create_taskbar_shortcut); | 434 EXPECT_FALSE(do_not_create_taskbar_shortcut); |
| 435 } | 435 } |
| OLD | NEW |