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

Unified Diff: chrome/browser/sync/notifier/listener/xml_element_util_unittest.cc

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/notifier/listener/xml_element_util_unittest.cc
===================================================================
--- chrome/browser/sync/notifier/listener/xml_element_util_unittest.cc (revision 46353)
+++ chrome/browser/sync/notifier/listener/xml_element_util_unittest.cc (working copy)
@@ -1,59 +0,0 @@
-// 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/browser/sync/notifier/listener/xml_element_util.h"
-
-#include <sstream>
-#include <string>
-
-#include "base/logging.h"
-#include "base/scoped_ptr.h"
-#include "talk/xmllite/qname.h"
-#include "talk/xmllite/xmlelement.h"
-#include "talk/xmllite/xmlprinter.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace buzz {
-class XmlElement;
-}
-
-namespace notifier {
-namespace {
-
-class XmlElementUtilTest : public testing::Test {};
-
-TEST_F(XmlElementUtilTest, XmlElementToString) {
- const buzz::QName kQName(true, "namespace", "element");
- const buzz::XmlElement kXmlElement(kQName, true);
- std::ostringstream expected_xml_stream;
- buzz::XmlPrinter::PrintXml(&expected_xml_stream, &kXmlElement);
- EXPECT_EQ(expected_xml_stream.str(), XmlElementToString(kXmlElement));
-}
-
-TEST_F(XmlElementUtilTest, MakeBoolXmlElement) {
- scoped_ptr<buzz::XmlElement> foo_false(
- MakeBoolXmlElement("foo", false));
- EXPECT_EQ("<foo xmlns=\"\" bool=\"false\"/>", XmlElementToString(*foo_false));
-
- scoped_ptr<buzz::XmlElement> bar_true(
- MakeBoolXmlElement("bar", true));
- EXPECT_EQ("<bar xmlns=\"\" bool=\"true\"/>", XmlElementToString(*bar_true));
-}
-
-TEST_F(XmlElementUtilTest, MakeIntXmlElement) {
- scoped_ptr<buzz::XmlElement> int_xml_element(
- MakeIntXmlElement("foo", 35));
- EXPECT_EQ("<foo xmlns=\"\" int=\"35\"/>",
- XmlElementToString(*int_xml_element));
-}
-
-TEST_F(XmlElementUtilTest, MakeStringXmlElement) {
- scoped_ptr<buzz::XmlElement> string_xml_element(
- MakeStringXmlElement("foo", "bar"));
- EXPECT_EQ("<foo xmlns=\"\" data=\"bar\"/>",
- XmlElementToString(*string_xml_element));
-}
-
-} // namespace
-} // namespace notifier
« no previous file with comments | « chrome/browser/sync/notifier/listener/xml_element_util.cc ('k') | chrome/browser/sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698