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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 6 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
7 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" | 7 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" |
8 #include "chrome/browser/chromeos/cros/mock_network_library.h" | 8 #include "chrome/browser/chromeos/cros/mock_network_library.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
13 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 using ::testing::_; | 18 using ::testing::_; |
18 using ::testing::AnyNumber; | 19 using ::testing::AnyNumber; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 EXPECT_EQ("user", profile->GetPath().BaseName().value()); | 83 EXPECT_EQ("user", profile->GetPath().BaseName().value()); |
83 EXPECT_FALSE(profile->IsOffTheRecord()); | 84 EXPECT_FALSE(profile->IsOffTheRecord()); |
84 } | 85 } |
85 | 86 |
86 // After a guest login, we should get the OTR default profile. | 87 // After a guest login, we should get the OTR default profile. |
87 IN_PROC_BROWSER_TEST_F(LoginGuestTest, GuestIsOTR) { | 88 IN_PROC_BROWSER_TEST_F(LoginGuestTest, GuestIsOTR) { |
88 Profile* profile = browser()->profile(); | 89 Profile* profile = browser()->profile(); |
89 EXPECT_EQ("Default", profile->GetPath().BaseName().value()); | 90 EXPECT_EQ("Default", profile->GetPath().BaseName().value()); |
90 EXPECT_TRUE(profile->IsOffTheRecord()); | 91 EXPECT_TRUE(profile->IsOffTheRecord()); |
91 // Ensure there's extension service for this profile. | 92 // Ensure there's extension service for this profile. |
92 EXPECT_TRUE(profile->GetExtensionService()); | 93 EXPECT_TRUE(extensions::ExtensionSystem::Get(profile)->extension_service()); |
93 } | 94 } |
94 | 95 |
95 } // namespace chromeos | 96 } // namespace chromeos |
OLD | NEW |