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

Side by Side Diff: ios/chrome/browser/sessions/session_service_ios_unittest.mm

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import <Foundation/Foundation.h> 5 #import <Foundation/Foundation.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
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/path_service.h" 12 #include "base/path_service.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/sequenced_task_runner.h"
14 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
15 #include "base/test/scoped_task_environment.h" 16 #include "base/test/scoped_task_environment.h"
16 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
17 #include "ios/chrome/browser/chrome_paths.h" 18 #include "ios/chrome/browser/chrome_paths.h"
18 #import "ios/chrome/browser/sessions/session_ios.h" 19 #import "ios/chrome/browser/sessions/session_ios.h"
19 #import "ios/chrome/browser/sessions/session_service_ios.h" 20 #import "ios/chrome/browser/sessions/session_service_ios.h"
20 #import "ios/chrome/browser/sessions/session_window_ios.h" 21 #import "ios/chrome/browser/sessions/session_window_ios.h"
21 #import "ios/web/public/crw_session_storage.h" 22 #import "ios/web/public/crw_session_storage.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 #include "testing/gtest_mac.h" 24 #include "testing/gtest_mac.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // than a year has passed since the introduction of the compatibility code). 213 // than a year has passed since the introduction of the compatibility code).
213 TEST_F(SessionServiceTest, LoadM58Session) { 214 TEST_F(SessionServiceTest, LoadM58Session) {
214 NSString* session_path = 215 NSString* session_path =
215 SessionPathForTestData(FILE_PATH_LITERAL("session_m58.plist")); 216 SessionPathForTestData(FILE_PATH_LITERAL("session_m58.plist"));
216 ASSERT_NSNE(nil, session_path); 217 ASSERT_NSNE(nil, session_path);
217 SessionIOS* session = [session_service() loadSessionFromPath:session_path]; 218 SessionIOS* session = [session_service() loadSessionFromPath:session_path];
218 EXPECT_EQ(1u, session.sessionWindows.count); 219 EXPECT_EQ(1u, session.sessionWindows.count);
219 } 220 }
220 221
221 } // anonymous namespace 222 } // anonymous namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698