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

Side by Side Diff: ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 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
« no previous file with comments | « ios/chrome/browser/ui/sync/BUILD.gn ('k') | ios/chrome/browser/ui/tabs/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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 #include "ios/web/public/test/http_server/http_server_util.h"
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/sync/BUILD.gn ('k') | ios/chrome/browser/ui/tabs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698