| OLD | NEW |
| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 // Length and max number of requests for the subsequent intervals. | 222 // Length and max number of requests for the subsequent intervals. |
| 223 length = 60*60*1000; // 60 minutes | 223 length = 60*60*1000; // 60 minutes |
| 224 limit = 12; // maxminum nr of requests in the next 60 minutes | 224 limit = 12; // maxminum nr of requests in the next 60 minutes |
| 225 } | 225 } |
| 226 | 226 |
| 227 EXPECT_GE(count, 11) | 227 EXPECT_GE(count, 11) |
| 228 << "No enough requests were fired during the test run."; | 228 << "No enough requests were fired during the test run."; |
| 229 } | 229 } |
| 230 | 230 |
| 231 ScopedTestingBrowserProcess browser_process_; |
| 232 |
| 231 ScopedTempDir temp_user_data_dir_; | 233 ScopedTempDir temp_user_data_dir_; |
| 232 | 234 |
| 233 MessageLoop loop_; | 235 MessageLoop loop_; |
| 234 BrowserThread ui_thread_; | 236 BrowserThread ui_thread_; |
| 235 BrowserThread io_thread_; | 237 BrowserThread io_thread_; |
| 236 | 238 |
| 237 scoped_ptr<EventLogger> logger_; | 239 scoped_ptr<EventLogger> logger_; |
| 238 scoped_ptr<CloudPolicyDataStore> data_store_; | 240 scoped_ptr<CloudPolicyDataStore> data_store_; |
| 239 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; | 241 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; |
| 240 scoped_ptr<PrefService> prefs_; | 242 scoped_ptr<PrefService> prefs_; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 ExecuteTest(); | 383 ExecuteTest(); |
| 382 VerifyTest("http://www.youtube.com"); | 384 VerifyTest("http://www.youtube.com"); |
| 383 } | 385 } |
| 384 | 386 |
| 385 INSTANTIATE_TEST_CASE_P( | 387 INSTANTIATE_TEST_CASE_P( |
| 386 CloudPolicySubsystemPolicyReregisterTestInstance, | 388 CloudPolicySubsystemPolicyReregisterTestInstance, |
| 387 CloudPolicySubsystemPolicyReregisterTest, | 389 CloudPolicySubsystemPolicyReregisterTest, |
| 388 testing::Values(401, 403, 410)); | 390 testing::Values(401, 403, 410)); |
| 389 | 391 |
| 390 } // policy | 392 } // policy |
| OLD | NEW |