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

Side by Side Diff: base/deferred_sequenced_task_runner_unittest.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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 | « base/deferred_sequenced_task_runner.h ('k') | base/environment.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/deferred_sequenced_task_runner.h" 5 #include "base/deferred_sequenced_task_runner.h"
6 6
7 #include "base/basictypes.h"
8 #include "base/bind.h" 7 #include "base/bind.h"
9 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
10 #include "base/location.h" 9 #include "base/location.h"
11 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
13 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
14 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
15 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 16
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 StartRunner(); 168 StartRunner();
170 } 169 }
171 170
172 // All |short_lived_object| with id |2 * i| are destroyed before the task 171 // All |short_lived_object| with id |2 * i| are destroyed before the task
173 // |2 * i + 1| is executed. 172 // |2 * i + 1| is executed.
174 EXPECT_THAT(executed_task_ids_, 173 EXPECT_THAT(executed_task_ids_,
175 testing::ElementsAre(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)); 174 testing::ElementsAre(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
176 } 175 }
177 176
178 } // namespace 177 } // namespace
OLDNEW
« no previous file with comments | « base/deferred_sequenced_task_runner.h ('k') | base/environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698