OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/time.h" | 6 #include "base/time.h" |
7 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 7 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
8 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" | 8 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" |
9 #include "chrome/browser/chromeos/cros/mock_library_loader.h" | 9 #include "chrome/browser/chromeos/cros/mock_library_loader.h" |
10 #include "chrome/browser/chromeos/cros/mock_network_library.h" | 10 #include "chrome/browser/chromeos/cros/mock_network_library.h" |
11 #include "chrome/browser/chromeos/cros/mock_power_library.h" | 11 #include "chrome/browser/chromeos/cros/mock_power_library.h" |
12 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" | 12 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/test/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 using ::testing::_; | 22 using ::testing::_; |
23 using ::testing::AnyNumber; | 23 using ::testing::AnyNumber; |
24 using ::testing::InvokeWithoutArgs; | 24 using ::testing::InvokeWithoutArgs; |
25 using ::testing::NiceMock; | 25 using ::testing::NiceMock; |
26 using ::testing::Return; | 26 using ::testing::Return; |
27 using ::testing::ReturnRef; | 27 using ::testing::ReturnRef; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // On initial launch, we should get the OTR default profile. | 86 // On initial launch, we should get the OTR default profile. |
87 IN_PROC_BROWSER_TEST_F(LoginProfileTest, UserNotPassed) { | 87 IN_PROC_BROWSER_TEST_F(LoginProfileTest, UserNotPassed) { |
88 Profile* profile = browser()->profile(); | 88 Profile* profile = browser()->profile(); |
89 EXPECT_EQ("Default", profile->GetPath().BaseName().value()); | 89 EXPECT_EQ("Default", profile->GetPath().BaseName().value()); |
90 EXPECT_TRUE(profile->IsOffTheRecord()); | 90 EXPECT_TRUE(profile->IsOffTheRecord()); |
91 // Ensure there's extension service for this profile. | 91 // Ensure there's extension service for this profile. |
92 EXPECT_TRUE(profile->GetExtensionService()); | 92 EXPECT_TRUE(profile->GetExtensionService()); |
93 } | 93 } |
94 | 94 |
95 } // namespace chromeos | 95 } // namespace chromeos |
OLD | NEW |