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

Side by Side Diff: chrome/renderer/renderer_about_handler_unittest.cc

Issue 2814012: Split part of about_handler into chrome/common to break the browser-renderer ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: with unit test Created 10 years, 6 months 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
« no previous file with comments | « chrome/renderer/about_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/about_handler.h"
6 #include "chrome/renderer/about_handler.h"
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 // This is just to make sure the about_urls array in
10 // chrome/common/about_handler.cc matches up with the about_urls_handlers
11 // in chrome/renderer/about_handler.cc. They used to be in one array, but
12 // we broke them apart to break a browser <-> renderer dependency.
13 // We cannot test this with COMPILE_ASSERT because
14 // chrome/renderer/about_handler.cc doesn't know about the size of about_urls
15 // in chrome/common/about_handler.cc at compile time.
16
17 TEST(RendererAboutHandlerTest, AboutUrlHandlerArray) {
18 ASSERT_EQ(chrome_about_handler::about_urls_size,
19 AboutHandler::AboutURLHandlerSize());
20 }
OLDNEW
« no previous file with comments | « chrome/renderer/about_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698