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

Side by Side Diff: headless/public/util/deterministic_dispatcher_test.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 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 #include "headless/public/util/deterministic_dispatcher.h" 5 #include "headless/public/util/deterministic_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 13 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "headless/public/util/navigation_request.h" 15 #include "headless/public/util/navigation_request.h"
15 #include "headless/public/util/testing/fake_managed_dispatch_url_request_job.h" 16 #include "headless/public/util/testing/fake_managed_dispatch_url_request_job.h"
16 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
19 using testing::ElementsAre; 20 using testing::ElementsAre;
20 21
21 namespace headless { 22 namespace headless {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::RunLoop().RunUntilIdle(); 189 base::RunLoop().RunUntilIdle();
189 EXPECT_THAT(notifications, ElementsAre("id: 1 OK", "id: 2 OK", "id: 3 OK")); 190 EXPECT_THAT(notifications, ElementsAre("id: 1 OK", "id: 2 OK", "id: 3 OK"));
190 191
191 job3.reset(); 192 job3.reset();
192 base::RunLoop().RunUntilIdle(); 193 base::RunLoop().RunUntilIdle();
193 EXPECT_THAT(notifications, 194 EXPECT_THAT(notifications,
194 ElementsAre("id: 1 OK", "id: 2 OK", "id: 3 OK", "id: 4 OK")); 195 ElementsAre("id: 1 OK", "id: 2 OK", "id: 3 OK", "id: 4 OK"));
195 } 196 }
196 197
197 } // namespace headless 198 } // namespace headless
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698