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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 #include "chrome/browser/profiles/profile_info_cache.h" | 24 #include "chrome/browser/profiles/profile_info_cache.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
27 #include "chrome/common/chrome_constants.h" | 27 #include "chrome/common/chrome_constants.h" |
28 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
29 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
32 #include "chrome/test/base/test_browser_window.h" | 32 #include "chrome/test/base/test_browser_window.h" |
33 #include "chrome/test/base/testing_browser_process.h" | 33 #include "chrome/test/base/testing_browser_process.h" |
34 #include "chrome/test/base/testing_pref_service.h" | 34 #include "chrome/test/base/testing_pref_service_syncable.h" |
Mattias Nissler (ping if slow)
2013/02/12 13:53:32
required?
| |
35 #include "chrome/test/base/testing_profile.h" | 35 #include "chrome/test/base/testing_profile.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/test/test_browser_thread.h" | 37 #include "content/public/test/test_browser_thread.h" |
38 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
40 | 40 |
41 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
42 #include "chrome/browser/chromeos/cros/cros_library.h" | 42 #include "chrome/browser/chromeos/cros/cros_library.h" |
43 #endif | 43 #endif |
44 | 44 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 browser2b.reset(); | 590 browser2b.reset(); |
591 last_opened_profiles = profile_manager->GetLastOpenedProfiles(); | 591 last_opened_profiles = profile_manager->GetLastOpenedProfiles(); |
592 ASSERT_EQ(1U, last_opened_profiles.size()); | 592 ASSERT_EQ(1U, last_opened_profiles.size()); |
593 EXPECT_EQ(profile1, last_opened_profiles[0]); | 593 EXPECT_EQ(profile1, last_opened_profiles[0]); |
594 | 594 |
595 browser1.reset(); | 595 browser1.reset(); |
596 last_opened_profiles = profile_manager->GetLastOpenedProfiles(); | 596 last_opened_profiles = profile_manager->GetLastOpenedProfiles(); |
597 ASSERT_EQ(0U, last_opened_profiles.size()); | 597 ASSERT_EQ(0U, last_opened_profiles.size()); |
598 } | 598 } |
599 #endif // !defined(OS_ANDROID) | 599 #endif // !defined(OS_ANDROID) |
OLD | NEW |