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

Side by Side Diff: chrome/browser/policy/cloud/mock_device_management_service.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/cloud/mock_device_management_service.h" 5 #include "chrome/browser/policy/cloud/mock_device_management_service.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/url_request/url_request_test_util.h" 10 #include "net/url_request/url_request_test_util.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 private: 43 private:
44 // Searches for a query parameter and returns the associated value. 44 // Searches for a query parameter and returns the associated value.
45 const std::string& ExtractParameter(const std::string& name) const { 45 const std::string& ExtractParameter(const std::string& name) const {
46 for (ParameterMap::const_iterator entry(query_params_.begin()); 46 for (ParameterMap::const_iterator entry(query_params_.begin());
47 entry != query_params_.end(); 47 entry != query_params_.end();
48 ++entry) { 48 ++entry) {
49 if (name == entry->first) 49 if (name == entry->first)
50 return entry->second; 50 return entry->second;
51 } 51 }
52 52
53 return EmptyString(); 53 return base::EmptyString();
54 } 54 }
55 55
56 MockDeviceManagementService* service_; 56 MockDeviceManagementService* service_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(MockRequestJobBase); 58 DISALLOW_COPY_AND_ASSIGN(MockRequestJobBase);
59 }; 59 };
60 60
61 // Synchronous mock request job that immediately completes on calling Run(). 61 // Synchronous mock request job that immediately completes on calling Run().
62 class SyncRequestJob : public MockRequestJobBase { 62 class SyncRequestJob : public MockRequestJobBase {
63 public: 63 public:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const em::DeviceManagementResponse dummy_response; 168 const em::DeviceManagementResponse dummy_response;
169 return CreateSyncMockDeviceManagementJob(this, status, dummy_response); 169 return CreateSyncMockDeviceManagementJob(this, status, dummy_response);
170 } 170 }
171 171
172 Action<MockDeviceManagementService::CreateJobFunction> 172 Action<MockDeviceManagementService::CreateJobFunction>
173 MockDeviceManagementService::CreateAsyncJob(MockDeviceManagementJob** job) { 173 MockDeviceManagementService::CreateAsyncJob(MockDeviceManagementJob** job) {
174 return CreateAsyncMockDeviceManagementJob(this, job); 174 return CreateAsyncMockDeviceManagementJob(this, job);
175 } 175 }
176 176
177 } // namespace policy 177 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/component_cloud_policy_store.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698