diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 04:09:14 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 04:09:14 +0000 |
commit | 3e0f7d520ae052fa4f092d75e61ca3605109f44f (patch) | |
tree | 8272de51d40a9f8ca4e6d3ab94e34fa20693669e /chrome/renderer/renderer_about_handler_unittest.cc | |
parent | 5ed60cdb3f706f8e033d67d5f4e3b4663fa7630d (diff) | |
download | chromium_src-3e0f7d520ae052fa4f092d75e61ca3605109f44f.zip chromium_src-3e0f7d520ae052fa4f092d75e61ca3605109f44f.tar.gz chromium_src-3e0f7d520ae052fa4f092d75e61ca3605109f44f.tar.bz2 |
Split part of about_handler into chrome/common to break the browser-renderer dependency.
BUG=46666
TEST=none
Review URL: http://codereview.chromium.org/2814012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_about_handler_unittest.cc')
-rw-r--r-- | chrome/renderer/renderer_about_handler_unittest.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_about_handler_unittest.cc b/chrome/renderer/renderer_about_handler_unittest.cc new file mode 100644 index 0000000..633663c --- /dev/null +++ b/chrome/renderer/renderer_about_handler_unittest.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/common/about_handler.h" +#include "chrome/renderer/about_handler.h" +#include "testing/gtest/include/gtest/gtest.h" + +// This is just to make sure the about_urls array in +// chrome/common/about_handler.cc matches up with the about_urls_handlers +// in chrome/renderer/about_handler.cc. They used to be in one array, but +// we broke them apart to break a browser <-> renderer dependency. +// We cannot test this with COMPILE_ASSERT because +// chrome/renderer/about_handler.cc doesn't know about the size of about_urls +// in chrome/common/about_handler.cc at compile time. + +TEST(RendererAboutHandlerTest, AboutUrlHandlerArray) { + ASSERT_EQ(chrome_about_handler::about_urls_size, + AboutHandler::AboutURLHandlerSize()); +} |