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

Side by Side Diff: chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 Created 4 years, 7 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 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/json/json_file_value_serializer.h" 12 #include "base/json/json_file_value_serializer.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/sequenced_task_runner.h" 18 #include "base/sequenced_task_runner.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/test/scoped_path_override.h" 21 #include "base/test/scoped_path_override.h"
22 #include "base/thread_task_runner_handle.h" 22 #include "base/threading/thread_task_runner_handle.h"
23 #include "base/values.h" 23 #include "base/values.h"
24 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h " 24 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h "
25 #include "chrome/browser/profiles/profile_attributes_storage.h" 25 #include "chrome/browser/profiles/profile_attributes_storage.h"
26 #include "chrome/common/chrome_paths.h" 26 #include "chrome/common/chrome_paths.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 #include "chrome/test/base/testing_browser_process.h" 28 #include "chrome/test/base/testing_browser_process.h"
29 #include "chrome/test/base/testing_profile_manager.h" 29 #include "chrome/test/base/testing_profile_manager.h"
30 #include "components/component_updater/component_updater_paths.h" 30 #include "components/component_updater/component_updater_paths.h"
31 #include "components/component_updater/component_updater_service.h" 31 #include "components/component_updater/component_updater_service.h"
32 #include "components/crx_file/id_util.h" 32 #include "components/crx_file/id_util.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // but it exercises a different code path. 418 // but it exercises a different code path.
419 profile_attributes_storage()->RemoveProfile(GetProfilePath(kOtherClientId)); 419 profile_attributes_storage()->RemoveProfile(GetProfilePath(kOtherClientId));
420 run_loop.RunUntilIdle(); 420 run_loop.RunUntilIdle();
421 } 421 }
422 EXPECT_FALSE(component_update_service_.registered_component()); 422 EXPECT_FALSE(component_update_service_.registered_component());
423 EXPECT_FALSE(base::DirectoryExists(whitelist_directory_)); 423 EXPECT_FALSE(base::DirectoryExists(whitelist_directory_));
424 EXPECT_FALSE(base::PathExists(whitelist_path_)); 424 EXPECT_FALSE(base::PathExists(whitelist_path_));
425 } 425 }
426 426
427 } // namespace component_updater 427 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698