Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: chrome/browser/chromeos/drive/drive_integration_service_unittest.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/chromeos/drive/fake_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698