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 "chrome/browser/chromeos/drive/drive_integration_service.h" | 5 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/drive/dummy_file_system.h" | 7 #include "chrome/browser/chromeos/drive/dummy_file_system.h" |
8 #include "chrome/browser/drive/dummy_drive_service.h" | |
9 #include "chrome/test/base/testing_browser_process.h" | 8 #include "chrome/test/base/testing_browser_process.h" |
10 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
11 #include "chrome/test/base/testing_profile_manager.h" | 10 #include "chrome/test/base/testing_profile_manager.h" |
| 11 #include "components/drive/service/dummy_drive_service.h" |
12 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
13 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace drive { | 16 namespace drive { |
17 | 17 |
18 namespace{ | 18 namespace{ |
19 const char kTestProfileName[] = "test-profile"; | 19 const char kTestProfileName[] = "test-profile"; |
20 } | 20 } |
21 | 21 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 EXPECT_EQ(DriveIntegrationServiceFactory::GetForProfile(user1), | 60 EXPECT_EQ(DriveIntegrationServiceFactory::GetForProfile(user1), |
61 DriveIntegrationServiceFactory::GetForProfile(user1_incognito)); | 61 DriveIntegrationServiceFactory::GetForProfile(user1_incognito)); |
62 | 62 |
63 // For different profiles, different services are running. | 63 // For different profiles, different services are running. |
64 TestingProfile* user2 = profile_manager_.CreateTestingProfile("user2"); | 64 TestingProfile* user2 = profile_manager_.CreateTestingProfile("user2"); |
65 EXPECT_NE(DriveIntegrationServiceFactory::GetForProfile(user1), | 65 EXPECT_NE(DriveIntegrationServiceFactory::GetForProfile(user1), |
66 DriveIntegrationServiceFactory::GetForProfile(user2)); | 66 DriveIntegrationServiceFactory::GetForProfile(user2)); |
67 } | 67 } |
68 | 68 |
69 } // namespace drive | 69 } // namespace drive |
OLD | NEW |