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

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

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares 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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/browser/policy/device_management_backend_mock.h" 6 #include "chrome/browser/policy/device_management_backend_mock.h"
7 #include "chrome/browser/policy/device_management_service.h" 7 #include "chrome/browser/policy/device_management_service.h"
8 #include "chrome/browser/policy/proto/device_management_constants.h" 8 #include "chrome/browser/policy/proto/device_management_constants.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "content/common/net/url_fetcher.h"
12 #include "net/test/test_server.h" 13 #include "net/test/test_server.h"
13 #include "net/url_request/url_request.h" 14 #include "net/url_request/url_request.h"
14 #include "net/url_request/url_request_test_job.h" 15 #include "net/url_request/url_request_test_job.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 using testing::DoAll; 19 using testing::DoAll;
19 using testing::Invoke; 20 using testing::Invoke;
20 using testing::InvokeWithoutArgs; 21 using testing::InvokeWithoutArgs;
21 using testing::_; 22 using testing::_;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 EXPECT_CALL(delegate, HandleUnregisterResponse(_)) 185 EXPECT_CALL(delegate, HandleUnregisterResponse(_))
185 .WillOnce(InvokeWithoutArgs(QuitMessageLoop)); 186 .WillOnce(InvokeWithoutArgs(QuitMessageLoop));
186 em::DeviceUnregisterRequest request; 187 em::DeviceUnregisterRequest request;
187 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate); 188 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate);
188 189
189 MessageLoop::current()->Run(); 190 MessageLoop::current()->Run();
190 } 191 }
191 } 192 }
192 193
193 } // namespace policy 194 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698