OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <windows.h> | 5 #include <windows.h> |
6 #include <atlsecurity.h> | 6 #include <atlsecurity.h> |
7 #include <shellapi.h> | 7 #include <shellapi.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
17 #include "base/scoped_handle.h" | 17 #include "base/scoped_handle.h" |
18 #include "base/task.h" | 18 #include "base/task.h" |
19 #include "base/win_util.h" | |
20 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
21 | 20 |
22 #include "chrome_frame/chrome_frame_automation.h" | 21 #include "chrome_frame/chrome_frame_automation.h" |
23 #include "chrome_frame/chrome_frame_delegate.h" | 22 #include "chrome_frame/chrome_frame_delegate.h" |
24 #include "chrome_frame/html_utils.h" | 23 #include "chrome_frame/html_utils.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "chrome/browser/automation/url_request_automation_job.h" | 25 #include "chrome/browser/automation/url_request_automation_job.h" |
27 | 26 |
28 const char kChromeFrameUserAgent[] = "chromeframe"; | 27 const char kChromeFrameUserAgent[] = "chromeframe"; |
29 | 28 |
(...skipping 331 matching lines...) Loading... |
361 "Content-Length: 42\r\n" | 360 "Content-Length: 42\r\n" |
362 "X-Frame-Options: SAMEORIGIN\r\n")); | 361 "X-Frame-Options: SAMEORIGIN\r\n")); |
363 EXPECT_TRUE(http_utils::HasFrameBustingHeader( | 362 EXPECT_TRUE(http_utils::HasFrameBustingHeader( |
364 "X-Frame-Options: deny\r\n" | 363 "X-Frame-Options: deny\r\n" |
365 "X-Frame-Options: ALLOWall\r\n" | 364 "X-Frame-Options: ALLOWall\r\n" |
366 "Content-Length: 42\r\n")); | 365 "Content-Length: 42\r\n")); |
367 EXPECT_TRUE(http_utils::HasFrameBustingHeader( | 366 EXPECT_TRUE(http_utils::HasFrameBustingHeader( |
368 "X-Frame-Options: SAMEORIGIN\r\n" | 367 "X-Frame-Options: SAMEORIGIN\r\n" |
369 "X-Frame-Options: ALLOWall\r\n")); | 368 "X-Frame-Options: ALLOWall\r\n")); |
370 } | 369 } |
371 | |
OLD | NEW |