OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h" |
| 6 |
5 #include <memory> | 7 #include <memory> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
11 #include "components/bookmarks/browser/bookmark_model.h" | 13 #include "components/bookmarks/browser/bookmark_model.h" |
12 #include "ios/chrome/browser/experimental_flags.h" | 14 #include "ios/chrome/browser/experimental_flags.h" |
13 #include "ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h" | 15 #include "ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h" |
14 #import "ios/chrome/browser/ui/bookmarks/bookmark_menu_item.h" | 16 #import "ios/chrome/browser/ui/bookmarks/bookmark_menu_item.h" |
15 #import "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h" | |
16 #include "testing/gtest_mac.h" | 17 #include "testing/gtest_mac.h" |
17 | 18 |
18 #if !defined(__has_feature) || !__has_feature(objc_arc) | 19 #if !defined(__has_feature) || !__has_feature(objc_arc) |
19 #error "This file requires ARC support." | 20 #error "This file requires ARC support." |
20 #endif | 21 #endif |
21 | 22 |
22 using bookmarks::BookmarkNode; | 23 using bookmarks::BookmarkNode; |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 vector1.push_back(bookmark1); | 392 vector1.push_back(bookmark1); |
392 vector2.insert(vector2.begin(), bookmark1); | 393 vector2.insert(vector2.begin(), bookmark1); |
393 missingNodesIndices = | 394 missingNodesIndices = |
394 bookmark_utils_ios::MissingNodesIndices(vector1, vector2); | 395 bookmark_utils_ios::MissingNodesIndices(vector1, vector2); |
395 EXPECT_EQ(2u, missingNodesIndices.size()); | 396 EXPECT_EQ(2u, missingNodesIndices.size()); |
396 EXPECT_EQ(2u, missingNodesIndices[0]); | 397 EXPECT_EQ(2u, missingNodesIndices[0]); |
397 EXPECT_EQ(3u, missingNodesIndices[1]); | 398 EXPECT_EQ(3u, missingNodesIndices[1]); |
398 } | 399 } |
399 | 400 |
400 } // namespace | 401 } // namespace |
OLD | NEW |