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 "chrome/installer/util/master_preferences.h" | 7 #include "chrome/installer/util/master_preferences.h" |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/strings/stringprintf.h" | |
17 #include "base/values.h" | 16 #include "base/values.h" |
18 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
20 #include "chrome/installer/util/master_preferences_constants.h" | 19 #include "chrome/installer/util/master_preferences_constants.h" |
21 #include "chrome/installer/util/util_constants.h" | 20 #include "chrome/installer/util/util_constants.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 | 22 |
24 namespace { | 23 namespace { |
25 class MasterPreferencesTest : public testing::Test { | 24 class MasterPreferencesTest : public testing::Test { |
26 protected: | 25 protected: |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 prefs.GetBool( | 400 prefs.GetBool( |
402 installer::master_preferences::kDoNotCreateQuickLaunchShortcut, | 401 installer::master_preferences::kDoNotCreateQuickLaunchShortcut, |
403 &do_not_create_quick_launch_shortcut); | 402 &do_not_create_quick_launch_shortcut); |
404 prefs.GetBool( | 403 prefs.GetBool( |
405 installer::master_preferences::kDoNotCreateTaskbarShortcut, | 404 installer::master_preferences::kDoNotCreateTaskbarShortcut, |
406 &do_not_create_taskbar_shortcut); | 405 &do_not_create_taskbar_shortcut); |
407 EXPECT_FALSE(do_not_create_desktop_shortcut); | 406 EXPECT_FALSE(do_not_create_desktop_shortcut); |
408 EXPECT_FALSE(do_not_create_quick_launch_shortcut); | 407 EXPECT_FALSE(do_not_create_quick_launch_shortcut); |
409 EXPECT_FALSE(do_not_create_taskbar_shortcut); | 408 EXPECT_FALSE(do_not_create_taskbar_shortcut); |
410 } | 409 } |
OLD | NEW |