| 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_system_service.h" | 5 #include "chrome/browser/chromeos/drive/drive_system_service.h" |
| 6 | 6 |
| 7 #include "chrome/browser/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
| 12 | 12 |
| 13 namespace drive { | 13 namespace drive { |
| 14 | 14 |
| 15 class DriveSystemServiceBrowserTest : public InProcessBrowserTest { | 15 class DriveSystemServiceBrowserTest : public InProcessBrowserTest { |
| 16 }; | 16 }; |
| 17 | 17 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 // ...next try to disable drive. | 35 // ...next try to disable drive. |
| 36 browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableDrive, true); | 36 browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableDrive, true); |
| 37 | 37 |
| 38 drive_service = | 38 drive_service = |
| 39 drive::DriveSystemServiceFactory::GetForProfile(browser()->profile()); | 39 drive::DriveSystemServiceFactory::GetForProfile(browser()->profile()); |
| 40 | 40 |
| 41 EXPECT_FALSE(drive_service); | 41 EXPECT_FALSE(drive_service); |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace drive | 44 } // namespace drive |
| OLD | NEW |