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

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

Issue 7744039: Switch ChromeTestSuite to the same convention as ContentTestSuite: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixing Created 9 years, 4 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 | 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 <vector> 5 #include <vector>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_split.h" 8 #include "base/string_split.h"
9 #include "chrome/browser/policy/device_management_backend_impl.h" 9 #include "chrome/browser/policy/device_management_backend_impl.h"
10 #include "chrome/browser/policy/device_management_backend_mock.h" 10 #include "chrome/browser/policy/device_management_backend_mock.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void InitializeService() { 67 void InitializeService() {
68 service_->ScheduleInitialization(0); 68 service_->ScheduleInitialization(0);
69 loop_.RunAllPending(); 69 loop_.RunAllPending();
70 } 70 }
71 71
72 TestURLFetcherFactory factory_; 72 TestURLFetcherFactory factory_;
73 scoped_ptr<DeviceManagementService> service_; 73 scoped_ptr<DeviceManagementService> service_;
74 scoped_ptr<DeviceManagementBackend> backend_; 74 scoped_ptr<DeviceManagementBackend> backend_;
75 75
76 private: 76 private:
77 ScopedTestingBrowserProcess browser_process_;
78
79 MessageLoopForUI loop_; 77 MessageLoopForUI loop_;
80 BrowserThread ui_thread_; 78 BrowserThread ui_thread_;
81 BrowserThread io_thread_; 79 BrowserThread io_thread_;
82 }; 80 };
83 81
84 struct FailedRequestParams { 82 struct FailedRequestParams {
85 FailedRequestParams(DeviceManagementBackend::ErrorCode expected_error, 83 FailedRequestParams(DeviceManagementBackend::ErrorCode expected_error,
86 net::URLRequestStatus::Status request_status, 84 net::URLRequestStatus::Status request_status,
87 int http_status, 85 int http_status,
88 const std::string& response) 86 const std::string& response)
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 status, 492 status,
495 500, 493 500,
496 net::ResponseCookies(), 494 net::ResponseCookies(),
497 ""); 495 "");
498 496
499 // Backend should have been reset. 497 // Backend should have been reset.
500 EXPECT_FALSE(backend_.get()); 498 EXPECT_FALSE(backend_.get());
501 } 499 }
502 500
503 } // namespace policy 501 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698