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

Side by Side Diff: chrome/browser/extensions/extension_system_apitest.cc

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made destructor virtual Created 9 years 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 | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698