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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker_unittest.cc

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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 #include "platform/scheduler/base/thread_load_tracker.h" 1 #include "platform/scheduler/base/thread_load_tracker.h"
2 2
3 #include "base/bind.h" 3 #include "base/bind.h"
4 #include "testing/gmock/include/gmock/gmock.h" 4 #include "testing/gmock/include/gmock/gmock.h"
5 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 using testing::ElementsAre; 7 using ::testing::ElementsAre;
8 8
9 namespace blink { 9 namespace blink {
10 namespace scheduler { 10 namespace scheduler {
11 11
12 namespace { 12 namespace {
13 13
14 void AddToVector(std::vector<std::pair<base::TimeTicks, double>>* vector, 14 void AddToVector(std::vector<std::pair<base::TimeTicks, double>>* vector,
15 base::TimeTicks time, 15 base::TimeTicks time,
16 double load) { 16 double load) {
17 vector->push_back({time, load}); 17 vector->push_back({time, load});
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 thread_load_tracker.RecordTaskTime(SecondsToTime(28), SecondsToTime(29)); 109 thread_load_tracker.RecordTaskTime(SecondsToTime(28), SecondsToTime(29));
110 110
111 EXPECT_THAT(result, ElementsAre(std::make_pair(SecondsToTime(27), 0), 111 EXPECT_THAT(result, ElementsAre(std::make_pair(SecondsToTime(27), 0),
112 std::make_pair(SecondsToTime(28), 0), 112 std::make_pair(SecondsToTime(28), 0),
113 std::make_pair(SecondsToTime(29), 1))); 113 std::make_pair(SecondsToTime(29), 1)));
114 } 114 }
115 115
116 } // namespace scheduler 116 } // namespace scheduler
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698