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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 #if !defined(OS_CHROMEOS) | 57 #if !defined(OS_CHROMEOS) |
58 #include "base/callback.h" | 58 #include "base/callback.h" |
59 #include "base/run_loop.h" | 59 #include "base/run_loop.h" |
60 #include "base/values.h" | 60 #include "base/values.h" |
61 #include "components/policy/core/browser/browser_policy_connector.h" | 61 #include "components/policy/core/browser/browser_policy_connector.h" |
62 #include "components/policy/core/common/external_data_fetcher.h" | 62 #include "components/policy/core/common/external_data_fetcher.h" |
63 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 63 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
64 #include "components/policy/core/common/policy_map.h" | 64 #include "components/policy/core/common/policy_map.h" |
65 #include "components/policy/core/common/policy_types.h" | 65 #include "components/policy/core/common/policy_types.h" |
66 #include "policy/policy_constants.h" | 66 #include "components/policy/policy_constants.h" |
67 #include "testing/gmock/include/gmock/gmock.h" | 67 #include "testing/gmock/include/gmock/gmock.h" |
68 | 68 |
69 using testing::_; | 69 using testing::_; |
70 using testing::Return; | 70 using testing::Return; |
71 #endif // !defined(OS_CHROMEOS) | 71 #endif // !defined(OS_CHROMEOS) |
72 | 72 |
73 #if defined(ENABLE_SUPERVISED_USERS) | 73 #if defined(ENABLE_SUPERVISED_USERS) |
74 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" | 74 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" |
75 #include "chrome/browser/supervised_user/supervised_user_service.h" | 75 #include "chrome/browser/supervised_user/supervised_user_service.h" |
76 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 76 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 ASSERT_TRUE(new_browser); | 1618 ASSERT_TRUE(new_browser); |
1619 | 1619 |
1620 // Verify that the first-run tab is shown and no other pages are present. | 1620 // Verify that the first-run tab is shown and no other pages are present. |
1621 TabStripModel* tab_strip = new_browser->tab_strip_model(); | 1621 TabStripModel* tab_strip = new_browser->tab_strip_model(); |
1622 ASSERT_EQ(1, tab_strip->count()); | 1622 ASSERT_EQ(1, tab_strip->count()); |
1623 EXPECT_EQ("title1.html", | 1623 EXPECT_EQ("title1.html", |
1624 tab_strip->GetWebContentsAt(0)->GetURL().ExtractFileName()); | 1624 tab_strip->GetWebContentsAt(0)->GetURL().ExtractFileName()); |
1625 } | 1625 } |
1626 | 1626 |
1627 #endif // !defined(OS_CHROMEOS) | 1627 #endif // !defined(OS_CHROMEOS) |
OLD | NEW |