| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/browser/ui/browser_commands.h" | 34 #include "chrome/browser/ui/browser_commands.h" |
| 35 #include "chrome/browser/ui/browser_finder.h" | 35 #include "chrome/browser/ui/browser_finder.h" |
| 36 #include "chrome/browser/ui/browser_list.h" | 36 #include "chrome/browser/ui/browser_list.h" |
| 37 #include "chrome/browser/ui/browser_list_observer.h" | 37 #include "chrome/browser/ui/browser_list_observer.h" |
| 38 #include "chrome/browser/ui/browser_window.h" | 38 #include "chrome/browser/ui/browser_window.h" |
| 39 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 39 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 40 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" | 40 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" |
| 41 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 41 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 43 #include "chrome/common/extensions/extension_constants.h" | 43 #include "chrome/common/extensions/extension_constants.h" |
| 44 #include "chrome/common/features.h" |
| 44 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
| 45 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
| 46 #include "chrome/test/base/in_process_browser_test.h" | 47 #include "chrome/test/base/in_process_browser_test.h" |
| 47 #include "chrome/test/base/ui_test_utils.h" | 48 #include "chrome/test/base/ui_test_utils.h" |
| 48 #include "components/metrics/metrics_pref_names.h" | 49 #include "components/metrics/metrics_pref_names.h" |
| 49 #include "components/prefs/pref_service.h" | 50 #include "components/prefs/pref_service.h" |
| 50 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
| 51 #include "content/public/common/content_switches.h" | 52 #include "content/public/common/content_switches.h" |
| 52 #include "content/public/test/test_utils.h" | 53 #include "content/public/test/test_utils.h" |
| 53 #include "extensions/browser/extension_system.h" | 54 #include "extensions/browser/extension_system.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 64 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 65 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
| 65 #include "components/policy/core/common/policy_map.h" | 66 #include "components/policy/core/common/policy_map.h" |
| 66 #include "components/policy/core/common/policy_types.h" | 67 #include "components/policy/core/common/policy_types.h" |
| 67 #include "components/policy/policy_constants.h" | 68 #include "components/policy/policy_constants.h" |
| 68 #include "testing/gmock/include/gmock/gmock.h" | 69 #include "testing/gmock/include/gmock/gmock.h" |
| 69 | 70 |
| 70 using testing::_; | 71 using testing::_; |
| 71 using testing::Return; | 72 using testing::Return; |
| 72 #endif // !defined(OS_CHROMEOS) | 73 #endif // !defined(OS_CHROMEOS) |
| 73 | 74 |
| 74 #if defined(ENABLE_SUPERVISED_USERS) | 75 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 75 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" | 76 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" |
| 76 #include "chrome/browser/supervised_user/supervised_user_service.h" | 77 #include "chrome/browser/supervised_user/supervised_user_service.h" |
| 77 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 78 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
| 78 #endif | 79 #endif |
| 79 | 80 |
| 80 #if defined(OS_WIN) | 81 #if defined(OS_WIN) |
| 81 #include "base/win/windows_version.h" | 82 #include "base/win/windows_version.h" |
| 82 #endif | 83 #endif |
| 83 | 84 |
| 84 using extensions::Extension; | 85 using extensions::Extension; |
| (...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 ASSERT_TRUE(new_browser); | 1619 ASSERT_TRUE(new_browser); |
| 1619 | 1620 |
| 1620 // Verify that the first-run tab is shown and no other pages are present. | 1621 // Verify that the first-run tab is shown and no other pages are present. |
| 1621 TabStripModel* tab_strip = new_browser->tab_strip_model(); | 1622 TabStripModel* tab_strip = new_browser->tab_strip_model(); |
| 1622 ASSERT_EQ(1, tab_strip->count()); | 1623 ASSERT_EQ(1, tab_strip->count()); |
| 1623 EXPECT_EQ("title1.html", | 1624 EXPECT_EQ("title1.html", |
| 1624 tab_strip->GetWebContentsAt(0)->GetURL().ExtractFileName()); | 1625 tab_strip->GetWebContentsAt(0)->GetURL().ExtractFileName()); |
| 1625 } | 1626 } |
| 1626 | 1627 |
| 1627 #endif // !defined(OS_CHROMEOS) | 1628 #endif // !defined(OS_CHROMEOS) |
| OLD | NEW |