| 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/json/json_value_serializer.h" | |
| 9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 11 #include "base/stringprintf.h" | 10 #include "base/stringprintf.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 "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 class MasterPreferencesTest : public testing::Test { | 20 class MasterPreferencesTest : public testing::Test { |
| 21 protected: | 21 protected: |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 EXPECT_TRUE(pref_cf.is_multi_install()); | 344 EXPECT_TRUE(pref_cf.is_multi_install()); |
| 345 EXPECT_FALSE(pref_cf.install_chrome()); | 345 EXPECT_FALSE(pref_cf.install_chrome()); |
| 346 EXPECT_TRUE(pref_cf.install_chrome_frame()); | 346 EXPECT_TRUE(pref_cf.install_chrome_frame()); |
| 347 | 347 |
| 348 EXPECT_TRUE(pref_chrome_cf.is_multi_install()); | 348 EXPECT_TRUE(pref_chrome_cf.is_multi_install()); |
| 349 EXPECT_TRUE(pref_chrome_cf.install_chrome()); | 349 EXPECT_TRUE(pref_chrome_cf.install_chrome()); |
| 350 EXPECT_TRUE(pref_chrome_cf.install_chrome_frame()); | 350 EXPECT_TRUE(pref_chrome_cf.install_chrome_frame()); |
| 351 } | 351 } |
| 352 | 352 |
| OLD | NEW |