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

Side by Side Diff: components/google/core/browser/google_url_tracker_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 11 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 #include "components/google/core/browser/google_url_tracker.h" 5 #include "components/google/core/browser/google_url_tracker.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/pref_registry_simple.h" 11 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
12 #include "base/prefs/testing_pref_service.h" 13 #include "base/prefs/testing_pref_service.h"
13 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
14 #include "components/google/core/browser/google_pref_names.h" 15 #include "components/google/core/browser/google_pref_names.h"
15 #include "components/google/core/browser/google_url_tracker_client.h" 16 #include "components/google/core/browser/google_url_tracker_client.h"
16 #include "net/url_request/test_url_fetcher_factory.h" 17 #include "net/url_request/test_url_fetcher_factory.h"
17 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
18 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 EXPECT_TRUE(listener_notified()); 343 EXPECT_TRUE(listener_notified());
343 clear_listener_notified(); 344 clear_listener_notified();
344 345
345 RequestServerCheck(); 346 RequestServerCheck();
346 // The second request should be ignored. 347 // The second request should be ignored.
347 EXPECT_FALSE(GetFetcher()); 348 EXPECT_FALSE(GetFetcher());
348 MockSearchDomainCheckResponse(".google.co.in"); 349 MockSearchDomainCheckResponse(".google.co.in");
349 EXPECT_EQ(GURL("https://www.google.co.uk/"), google_url()); 350 EXPECT_EQ(GURL("https://www.google.co.uk/"), google_url());
350 EXPECT_FALSE(listener_notified()); 351 EXPECT_FALSE(listener_notified());
351 } 352 }
OLDNEW
« no previous file with comments | « components/google/core/browser/google_url_tracker.cc ('k') | components/google/core/browser/google_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698