OLD | NEW |
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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
100 #include "ash/accelerators/accelerator_controller.h" | 100 #include "ash/accelerators/accelerator_controller.h" |
101 #include "ash/accelerators/accelerator_table.h" | 101 #include "ash/accelerators/accelerator_table.h" |
102 #include "ash/shell.h" | 102 #include "ash/shell.h" |
103 #include "ash/shell_delegate.h" | 103 #include "ash/shell_delegate.h" |
104 #include "chrome/browser/chromeos/audio/audio_handler.h" | 104 #include "chrome/browser/chromeos/audio/audio_handler.h" |
105 #endif | 105 #endif |
106 | 106 |
107 using content::BrowserThread; | 107 using content::BrowserThread; |
| 108 using content::URLRequestMockHTTPJob; |
108 using testing::Return; | 109 using testing::Return; |
109 | 110 |
110 namespace policy { | 111 namespace policy { |
111 | 112 |
112 namespace { | 113 namespace { |
113 | 114 |
114 const char kURL[] = "http://example.com"; | 115 const char kURL[] = "http://example.com"; |
115 const char kCookieValue[] = "converted=true"; | 116 const char kCookieValue[] = "converted=true"; |
116 // Assigned to Philip J. Fry to fix eventually. | 117 // Assigned to Philip J. Fry to fix eventually. |
117 const char kCookieOptions[] = ";expires=Wed Jan 01 3000 00:00:00 GMT"; | 118 const char kCookieOptions[] = ";expires=Wed Jan 01 3000 00:00:00 GMT"; |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 EXPECT_EQ(kExpectedLabel, text.substr(0, kExpectedLabel.size())); | 1574 EXPECT_EQ(kExpectedLabel, text.substr(0, kExpectedLabel.size())); |
1574 // HomepageLocation has policy ID 1. | 1575 // HomepageLocation has policy ID 1. |
1575 EXPECT_NE(std::string::npos, text.find("<br>1 ---")); | 1576 EXPECT_NE(std::string::npos, text.find("<br>1 ---")); |
1576 // ShowHomeButton has policy ID 35. | 1577 // ShowHomeButton has policy ID 35. |
1577 EXPECT_NE(std::string::npos, text.find("<br>35 ---")); | 1578 EXPECT_NE(std::string::npos, text.find("<br>35 ---")); |
1578 // BookmarkBarEnabled has policy ID 82. | 1579 // BookmarkBarEnabled has policy ID 82. |
1579 EXPECT_NE(std::string::npos, text.find("<br>82 ---")); | 1580 EXPECT_NE(std::string::npos, text.find("<br>82 ---")); |
1580 } | 1581 } |
1581 | 1582 |
1582 } // namespace policy | 1583 } // namespace policy |
OLD | NEW |