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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
11 #include "components/drive/drive_pref_names.h" 10 #include "components/drive/drive_pref_names.h"
11 #include "components/prefs/pref_service.h"
12 12
13 namespace drive { 13 namespace drive {
14 14
15 class DriveIntegrationServiceBrowserTest : public InProcessBrowserTest { 15 class DriveIntegrationServiceBrowserTest : public InProcessBrowserTest {
16 }; 16 };
17 17
18 // Verify DriveIntegrationService is created during login. 18 // Verify DriveIntegrationService is created during login.
19 IN_PROC_BROWSER_TEST_F(DriveIntegrationServiceBrowserTest, 19 IN_PROC_BROWSER_TEST_F(DriveIntegrationServiceBrowserTest,
20 CreatedDuringLogin) { 20 CreatedDuringLogin) {
21 EXPECT_TRUE(DriveIntegrationServiceFactory::FindForProfile( 21 EXPECT_TRUE(DriveIntegrationServiceFactory::FindForProfile(
(...skipping 17 matching lines...) Expand all
39 // ...next try to disable drive. 39 // ...next try to disable drive.
40 browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableDrive, true); 40 browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableDrive, true);
41 41
42 EXPECT_EQ(integration_service, 42 EXPECT_EQ(integration_service,
43 drive::DriveIntegrationServiceFactory::FindForProfile( 43 drive::DriveIntegrationServiceFactory::FindForProfile(
44 browser()->profile())); 44 browser()->profile()));
45 EXPECT_FALSE(integration_service->is_enabled()); 45 EXPECT_FALSE(integration_service->is_enabled());
46 } 46 }
47 47
48 } // namespace drive 48 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/chromeos/drive/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698