OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/extension_apitest.h" |
| 6 #include "chrome/browser/prefs/pref_service.h" |
| 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/common/pref_names.h" |
| 10 |
| 11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SystemApi) { |
| 12 PrefService* pref_service = browser()->profile()->GetPrefs(); |
| 13 pref_service->SetInteger(prefs::kIncognitoModeAvailability, 1); |
| 14 |
| 15 EXPECT_TRUE(RunComponentExtensionTest("system")) << message_; |
| 16 |
| 17 EXPECT_EQ(1, pref_service->GetInteger(prefs::kIncognitoModeAvailability)); |
| 18 } |
OLD | NEW |