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

Side by Side Diff: chrome/browser/policy/policy_browsertest.cc

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 <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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/net/url_request_mock_util.cc ('k') | chrome/browser/ui/browser_close_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698