OLD | NEW |
---|---|
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 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
6 #import <XCTest/XCTest.h> | 6 #import <XCTest/XCTest.h> |
7 | 7 |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "components/bookmarks/browser/bookmark_model.h" | 9 #include "components/bookmarks/browser/bookmark_model.h" |
10 #include "components/bookmarks/browser/titled_url_match.h" | 10 #include "components/bookmarks/browser/titled_url_match.h" |
(...skipping 14 matching lines...) Expand all Loading... | |
25 #import "ios/chrome/test/app/history_test_util.h" | 25 #import "ios/chrome/test/app/history_test_util.h" |
26 #import "ios/chrome/test/app/sync_test_util.h" | 26 #import "ios/chrome/test/app/sync_test_util.h" |
27 #import "ios/chrome/test/app/tab_test_util.h" | 27 #import "ios/chrome/test/app/tab_test_util.h" |
28 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 28 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
29 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 29 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
30 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 30 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
31 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 31 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
32 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" | 32 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" |
33 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h" | 33 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h" |
34 #import "ios/testing/wait_util.h" | 34 #import "ios/testing/wait_util.h" |
35 #import "ios/web/public/test/http_server.h" | 35 #import "ios/web/public/test/http_server/http_server.h" |
36 #import "ios/web/public/test/http_server_util.h" | 36 #import "ios/web/public/test/http_server/http_server_util.h" |
Eugene But (OOO till 7-30)
2017/05/26 17:22:28
s/import/include
baxley
2017/05/26 18:06:21
Done.
| |
37 #import "net/base/mac/url_conversions.h" | 37 #import "net/base/mac/url_conversions.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "url/gurl.h" | 39 #include "url/gurl.h" |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 // Constant for timeout while waiting for asynchronous sync operations. | 43 // Constant for timeout while waiting for asynchronous sync operations. |
44 const NSTimeInterval kSyncOperationTimeout = 10.0; | 44 const NSTimeInterval kSyncOperationTimeout = 10.0; |
45 | 45 |
46 // Returns a fake identity. | 46 // Returns a fake identity. |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
619 | 619 |
620 // Verify the correct number of bookmarks exist. | 620 // Verify the correct number of bookmarks exist. |
621 base::string16 matchString = base::SysNSStringToUTF16(title); | 621 base::string16 matchString = base::SysNSStringToUTF16(title); |
622 std::vector<bookmarks::TitledUrlMatch> matches; | 622 std::vector<bookmarks::TitledUrlMatch> matches; |
623 bookmarkModel->GetBookmarksMatching(matchString, 50, &matches); | 623 bookmarkModel->GetBookmarksMatching(matchString, 50, &matches); |
624 const size_t count = matches.size(); | 624 const size_t count = matches.size(); |
625 GREYAssertEqual(expectedCount, count, @"Unexpected number of bookmarks"); | 625 GREYAssertEqual(expectedCount, count, @"Unexpected number of bookmarks"); |
626 } | 626 } |
627 | 627 |
628 @end | 628 @end |
OLD | NEW |