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

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

Issue 58313002: Removed the PolicyDefinitionList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-10-use-registry
Patch Set: rebase Created 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/policy/browser_policy_connector.h" 9 #include "chrome/browser/policy/browser_policy_connector.h"
10 #include "chrome/browser/policy/cloud/cloud_policy_client.h" 10 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
11 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" 11 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h"
12 #include "chrome/browser/policy/cloud/test_request_interceptor.h" 12 #include "chrome/browser/policy/cloud/test_request_interceptor.h"
13 #include "chrome/browser/policy/policy_test_utils.h"
14 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 13 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
14 #include "chrome/browser/policy/test/policy_test_utils.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/url_request/url_request_context_getter.h" 21 #include "net/url_request/url_request_context_getter.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const bool expect_reregister = true; 191 const bool expect_reregister = true;
192 interceptor_->PushJobCallback( 192 interceptor_->PushJobCallback(
193 TestRequestInterceptor::RegisterJob(expected_type, expect_reregister)); 193 TestRequestInterceptor::RegisterJob(expected_type, expect_reregister));
194 194
195 EXPECT_FALSE(policy_manager()->core()->client()->is_registered()); 195 EXPECT_FALSE(policy_manager()->core()->client()->is_registered());
196 ASSERT_NO_FATAL_FAILURE(Register()); 196 ASSERT_NO_FATAL_FAILURE(Register());
197 EXPECT_TRUE(policy_manager()->core()->client()->is_registered()); 197 EXPECT_TRUE(policy_manager()->core()->client()->is_registered());
198 } 198 }
199 199
200 } // namespace policy 200 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_browsertest.cc ('k') | chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698