Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/installer/util/master_preferences_unittest.cc

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/module_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
8
7 #include <stddef.h> 9 #include <stddef.h>
8 10
11 #include <memory>
12
9 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
10 #include "base/macros.h" 14 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/path_service.h" 15 #include "base/path_service.h"
13 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
14 #include "base/values.h" 17 #include "base/values.h"
15 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
17 #include "chrome/installer/util/master_preferences.h"
18 #include "chrome/installer/util/master_preferences_constants.h" 20 #include "chrome/installer/util/master_preferences_constants.h"
19 #include "chrome/installer/util/util_constants.h" 21 #include "chrome/installer/util/util_constants.h"
20 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
21 23
22 namespace { 24 namespace {
23 class MasterPreferencesTest : public testing::Test { 25 class MasterPreferencesTest : public testing::Test {
24 protected: 26 protected:
25 void SetUp() override { 27 void SetUp() override {
26 ASSERT_TRUE(base::CreateTemporaryFile(&prefs_file_)); 28 ASSERT_TRUE(base::CreateTemporaryFile(&prefs_file_));
27 } 29 }
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 prefs.GetBool( 401 prefs.GetBool(
400 installer::master_preferences::kDoNotCreateQuickLaunchShortcut, 402 installer::master_preferences::kDoNotCreateQuickLaunchShortcut,
401 &do_not_create_quick_launch_shortcut); 403 &do_not_create_quick_launch_shortcut);
402 prefs.GetBool( 404 prefs.GetBool(
403 installer::master_preferences::kDoNotCreateTaskbarShortcut, 405 installer::master_preferences::kDoNotCreateTaskbarShortcut,
404 &do_not_create_taskbar_shortcut); 406 &do_not_create_taskbar_shortcut);
405 EXPECT_FALSE(do_not_create_desktop_shortcut); 407 EXPECT_FALSE(do_not_create_desktop_shortcut);
406 EXPECT_FALSE(do_not_create_quick_launch_shortcut); 408 EXPECT_FALSE(do_not_create_quick_launch_shortcut);
407 EXPECT_FALSE(do_not_create_taskbar_shortcut); 409 EXPECT_FALSE(do_not_create_taskbar_shortcut);
408 } 410 }
OLDNEW
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/module_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698