OLD | NEW |
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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/extensions/extension_browsertest.h" | 16 #include "chrome/browser/extensions/extension_browsertest.h" |
17 #include "chrome/browser/extensions/extension_test_message_listener.h" | 17 #include "chrome/browser/extensions/extension_test_message_listener.h" |
18 #include "chrome/browser/policy/profile_policy_connector.h" | 18 #include "chrome/browser/policy/profile_policy_connector.h" |
19 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 19 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
20 #include "chrome/browser/policy/test/local_policy_test_server.h" | 20 #include "chrome/browser/policy/test/local_policy_test_server.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 ExtensionTestMessageListener signin_policy_listener(kTestPolicyJSON, true); | 338 ExtensionTestMessageListener signin_policy_listener(kTestPolicyJSON, true); |
339 event_listener2.Reply("get-policy-Name"); | 339 event_listener2.Reply("get-policy-Name"); |
340 EXPECT_TRUE(signin_policy_listener.WaitUntilSatisfied()); | 340 EXPECT_TRUE(signin_policy_listener.WaitUntilSatisfied()); |
341 | 341 |
342 // And the cache is back. | 342 // And the cache is back. |
343 EXPECT_TRUE(base::PathExists(cache_path)); | 343 EXPECT_TRUE(base::PathExists(cache_path)); |
344 } | 344 } |
345 #endif | 345 #endif |
346 | 346 |
347 } // namespace policy | 347 } // namespace policy |
OLD | NEW |