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

Side by Side Diff: components/dom_distiller/core/fake_distiller.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/dom_distiller/core/fake_distiller.h" 5 #include "components/dom_distiller/core/fake_distiller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace dom_distiller { 17 namespace dom_distiller {
18 namespace test { 18 namespace test {
19 19
20 MockDistillerFactory::MockDistillerFactory() {} 20 MockDistillerFactory::MockDistillerFactory() {}
21 MockDistillerFactory::~MockDistillerFactory() {} 21 MockDistillerFactory::~MockDistillerFactory() {}
22 22
23 FakeDistiller::FakeDistiller(bool execute_callback) 23 FakeDistiller::FakeDistiller(bool execute_callback)
24 : execute_callback_(execute_callback), 24 : execute_callback_(execute_callback),
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 EXPECT_FALSE(article_callback_.is_null()); 83 EXPECT_FALSE(article_callback_.is_null());
84 84
85 base::AutoReset<bool> dont_delete_this_in_callback(&destruction_allowed_, 85 base::AutoReset<bool> dont_delete_this_in_callback(&destruction_allowed_,
86 false); 86 false);
87 article_callback_.Run(std::move(proto)); 87 article_callback_.Run(std::move(proto));
88 article_callback_.Reset(); 88 article_callback_.Reset();
89 } 89 }
90 90
91 } // namespace test 91 } // namespace test
92 } // namespace dom_distiller 92 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.cc ('k') | components/dom_distiller/core/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698