OLD | NEW |
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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
12 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" | 12 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" |
13 #include "ios/chrome/browser/crash_report/crash_restore_helper.h" | 13 #include "ios/chrome/browser/crash_report/crash_restore_helper.h" |
14 #import "ios/chrome/browser/sessions/session_service.h" | 14 #import "ios/chrome/browser/sessions/session_service_ios.h" |
15 #include "ios/web/public/test/test_web_thread_bundle.h" | 15 #include "ios/web/public/test/test_web_thread_bundle.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
19 #import "third_party/ocmock/OCMock/OCMock.h" | 19 #import "third_party/ocmock/OCMock/OCMock.h" |
20 #include "third_party/ocmock/gtest_support.h" | 20 #include "third_party/ocmock/gtest_support.h" |
21 | 21 |
22 #if !defined(__has_feature) || !__has_feature(objc_arc) | 22 #if !defined(__has_feature) || !__has_feature(objc_arc) |
23 #error "This file requires ARC support." | 23 #error "This file requires ARC support." |
24 #endif | 24 #endif |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 [helper_ moveAsideSessionInformation]; | 70 [helper_ moveAsideSessionInformation]; |
71 | 71 |
72 EXPECT_EQ(NO, [fileManager fileExistsAtPath:sessionPath]); | 72 EXPECT_EQ(NO, [fileManager fileExistsAtPath:sessionPath]); |
73 EXPECT_EQ(NO, [fileManager fileExistsAtPath:otrSessionPath]); | 73 EXPECT_EQ(NO, [fileManager fileExistsAtPath:otrSessionPath]); |
74 EXPECT_EQ(YES, [fileManager fileExistsAtPath:backupPath]); | 74 EXPECT_EQ(YES, [fileManager fileExistsAtPath:backupPath]); |
75 [fileManager removeItemAtPath:backupPath error:NULL]; | 75 [fileManager removeItemAtPath:backupPath error:NULL]; |
76 } | 76 } |
77 | 77 |
78 } // namespace | 78 } // namespace |
OLD | NEW |