| 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 #include "base/callback.h" | 5 #include "base/callback.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
| 18 #include "chrome/browser/invalidation/fake_invalidation_service.h" | 18 #include "chrome/browser/invalidation/fake_invalidation_service.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 472 |
| 473 // They should now serialize to the same bytes. | 473 // They should now serialize to the same bytes. |
| 474 std::string chrome_settings_serialized; | 474 std::string chrome_settings_serialized; |
| 475 std::string cloud_policy_serialized; | 475 std::string cloud_policy_serialized; |
| 476 ASSERT_TRUE(chrome_settings.SerializeToString(&chrome_settings_serialized)); | 476 ASSERT_TRUE(chrome_settings.SerializeToString(&chrome_settings_serialized)); |
| 477 ASSERT_TRUE(cloud_policy.SerializeToString(&cloud_policy_serialized)); | 477 ASSERT_TRUE(cloud_policy.SerializeToString(&cloud_policy_serialized)); |
| 478 EXPECT_EQ(chrome_settings_serialized, cloud_policy_serialized); | 478 EXPECT_EQ(chrome_settings_serialized, cloud_policy_serialized); |
| 479 } | 479 } |
| 480 | 480 |
| 481 } // namespace policy | 481 } // namespace policy |
| OLD | NEW |