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

Side by Side Diff: chrome/common/service_process_util_mac_unittest.mm

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/service_process_util.h" 5 #include "chrome/common/service_process_util.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/mac/mac_util.h" 14 #include "base/mac/mac_util.h"
15 #include "base/mac/scoped_nsobject.h" 15 #include "base/mac/scoped_nsobject.h"
16 #include "base/message_loop/message_loop.h"
16 #include "base/process/launch.h" 17 #include "base/process/launch.h"
17 #include "base/run_loop.h" 18 #include "base/run_loop.h"
18 #include "base/strings/sys_string_conversions.h" 19 #include "base/strings/sys_string_conversions.h"
19 #include "base/test/test_timeouts.h" 20 #include "base/test/test_timeouts.h"
20 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
21 #include "chrome/common/mac/launchd.h" 22 #include "chrome/common/mac/launchd.h"
22 #include "chrome/common/mac/mock_launchd.h" 23 #include "chrome/common/mac/mock_launchd.h"
23 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
24 25
25 // Once Chrome no longer supports OSX 10.7, everything within this 26 // Once Chrome no longer supports OSX 10.7, everything within this
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 187 }
187 188
188 TEST_F(ServiceProcessStateFileManipulationTest, ChangeAttr) { 189 TEST_F(ServiceProcessStateFileManipulationTest, ChangeAttr) {
189 ScopedAttributesRestorer restorer(bundle_path(), 0777); 190 ScopedAttributesRestorer restorer(bundle_path(), 0777);
190 GetIOTaskRunner()->PostTask(FROM_HERE, 191 GetIOTaskRunner()->PostTask(FROM_HERE,
191 base::Bind(&ChangeAttr, bundle_path(), 0222)); 192 base::Bind(&ChangeAttr, bundle_path(), 0222));
192 Run(); 193 Run();
193 ASSERT_TRUE(mock_launchd()->remove_called()); 194 ASSERT_TRUE(mock_launchd()->remove_called());
194 ASSERT_TRUE(mock_launchd()->delete_called()); 195 ASSERT_TRUE(mock_launchd()->delete_called());
195 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698