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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_service_unittest.cc

Issue 381553002: Update the CrxInstaller and UnpackedInstaller to use the ExtensionInstallChecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved include to correct file Created 6 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
« no previous file with comments | « chrome/browser/extensions/unpacked_installer.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/path_service.h" 5 #include "base/path_service.h"
6 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
7 #include "base/prefs/scoped_user_pref_update.h" 7 #include "base/prefs/scoped_user_pref_update.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_service_test_base.h" 11 #include "chrome/browser/extensions/extension_service_test_base.h"
11 #include "chrome/browser/extensions/unpacked_installer.h" 12 #include "chrome/browser/extensions/unpacked_installer.h"
12 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" 14 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
14 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 15 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
16 #include "chrome/browser/supervised_user/custodian_profile_downloader_service.h" 17 #include "chrome/browser/supervised_user/custodian_profile_downloader_service.h"
17 #include "chrome/browser/supervised_user/custodian_profile_downloader_service_fa ctory.h" 18 #include "chrome/browser/supervised_user/custodian_profile_downloader_service_fa ctory.h"
18 #include "chrome/browser/supervised_user/supervised_user_service.h" 19 #include "chrome/browser/supervised_user/supervised_user_service.h"
19 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 20 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 site_lists[0]->GetSites(&sites); 398 site_lists[0]->GetSites(&sites);
398 ASSERT_EQ(1u, sites.size()); 399 ASSERT_EQ(1u, sites.size());
399 EXPECT_EQ(base::ASCIIToUTF16("Moose"), sites[0].name); 400 EXPECT_EQ(base::ASCIIToUTF16("Moose"), sites[0].name);
400 401
401 EXPECT_EQ(SupervisedUserURLFilter::WARN, 402 EXPECT_EQ(SupervisedUserURLFilter::WARN,
402 url_filter->GetFilteringBehaviorForURL(example_url)); 403 url_filter->GetFilteringBehaviorForURL(example_url));
403 EXPECT_EQ(SupervisedUserURLFilter::ALLOW, 404 EXPECT_EQ(SupervisedUserURLFilter::ALLOW,
404 url_filter->GetFilteringBehaviorForURL(moose_url)); 405 url_filter->GetFilteringBehaviorForURL(moose_url));
405 } 406 }
406 #endif // !defined(OS_ANDROID) 407 #endif // !defined(OS_ANDROID)
OLDNEW
« no previous file with comments | « chrome/browser/extensions/unpacked_installer.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698