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

Side by Side Diff: chrome/browser/policy/logging_work_scheduler_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/policy/logging_work_scheduler.h" 5 #include "chrome/browser/policy/logging_work_scheduler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "content/test/test_browser_thread.h" 11 #include "content/test/test_browser_thread.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using content::BrowserThread;
15
14 namespace policy { 16 namespace policy {
15 17
16 class LoggingWorkSchedulerTest : public testing::Test { 18 class LoggingWorkSchedulerTest : public testing::Test {
17 public: 19 public:
18 LoggingWorkSchedulerTest() 20 LoggingWorkSchedulerTest()
19 : ui_thread_(BrowserThread::UI, &loop_) { 21 : ui_thread_(BrowserThread::UI, &loop_) {
20 } 22 }
21 23
22 virtual ~LoggingWorkSchedulerTest() { 24 virtual ~LoggingWorkSchedulerTest() {
23 } 25 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 EXPECT_EQ(120, events[8]); 106 EXPECT_EQ(120, events[8]);
105 107
106 EXPECT_EQ(0, EventLogger::CountEvents(events, 0, 0)); 108 EXPECT_EQ(0, EventLogger::CountEvents(events, 0, 0));
107 EXPECT_EQ(2, EventLogger::CountEvents(events, 0, 1)); 109 EXPECT_EQ(2, EventLogger::CountEvents(events, 0, 1));
108 EXPECT_EQ(4, EventLogger::CountEvents(events, 30, 51)); 110 EXPECT_EQ(4, EventLogger::CountEvents(events, 30, 51));
109 EXPECT_EQ(7, EventLogger::CountEvents(events, 0, 120)); 111 EXPECT_EQ(7, EventLogger::CountEvents(events, 0, 120));
110 EXPECT_EQ(7, EventLogger::CountEvents(events, 1, 120)); 112 EXPECT_EQ(7, EventLogger::CountEvents(events, 1, 120));
111 } 113 }
112 114
113 } // namespace policy 115 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/logging_work_scheduler.cc ('k') | chrome/browser/policy/url_blacklist_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698