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

Side by Side Diff: third_party/libaddressinput/chromium/chrome_metadata_source_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "third_party/libaddressinput/chromium/chrome_metadata_source.h" 5 #include "third_party/libaddressinput/chromium/chrome_metadata_source.h"
6 6
7 #include "base/message_loop/message_loop.h"
7 #include "base/run_loop.h" 8 #include "base/run_loop.h"
8 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
9 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
10 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace autofill { 14 namespace autofill {
14 15
15 static const char kFakeUrl[] = "https://example.com"; 16 static const char kFakeUrl[] = "https://example.com";
16 static const char kFakeInsecureUrl[] = "http://example.com"; 17 static const char kFakeInsecureUrl[] = "http://example.com";
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 TEST_F(ChromeMetadataSourceTest, RejectsInsecureScheme) { 93 TEST_F(ChromeMetadataSourceTest, RejectsInsecureScheme) {
93 const char kFakePayload[] = "ham hock"; 94 const char kFakePayload[] = "ham hock";
94 set_url(GURL(kFakeInsecureUrl)); 95 set_url(GURL(kFakeInsecureUrl));
95 SetFakeResponse(kFakePayload, net::HTTP_OK); 96 SetFakeResponse(kFakePayload, net::HTTP_OK);
96 Get(); 97 Get();
97 EXPECT_FALSE(success()); 98 EXPECT_FALSE(success());
98 EXPECT_TRUE(!has_data() || data().empty()); 99 EXPECT_TRUE(!has_data() || data().empty());
99 } 100 }
100 101
101 } // namespace autofill 102 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698