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

Unified Diff: content/browser/presentation/presentation_type_converters_unittest.cc

Issue 2613153003: [Presentation API] Replaces type converters with typemaps (Closed)
Patch Set: Extend presentation ID max length to 64. Created 3 years, 10 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
« no previous file with comments | « content/browser/presentation/presentation_type_converters.cc ('k') | content/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/presentation/presentation_type_converters_unittest.cc
diff --git a/content/browser/presentation/presentation_type_converters_unittest.cc b/content/browser/presentation/presentation_type_converters_unittest.cc
deleted file mode 100644
index e3f462363f94ed7bf3bd944943bf6209d6fed8cd..0000000000000000000000000000000000000000
--- a/content/browser/presentation/presentation_type_converters_unittest.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 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 <string>
-
-#include "content/browser/presentation/presentation_type_converters.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace content {
-
-TEST(PresentationTypeConvertersTest, PresentationSessionInfo) {
- GURL presentation_url("http://www.example.com/");
- std::string presentation_id("presentationId");
- PresentationSessionInfo session(presentation_url, presentation_id);
- blink::mojom::PresentationSessionInfoPtr session_mojo(
- blink::mojom::PresentationSessionInfo::From(session));
- EXPECT_FALSE(session_mojo.is_null());
- EXPECT_EQ(presentation_url, session_mojo->url);
- EXPECT_EQ(presentation_id, session_mojo->id);
-}
-
-TEST(PresentationTypeConvertersTest, PresentationError) {
- std::string message("Error message");
- PresentationError error(PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, message);
- blink::mojom::PresentationErrorPtr error_mojo(
- blink::mojom::PresentationError::From(error));
- EXPECT_FALSE(error_mojo.is_null());
- EXPECT_EQ(blink::mojom::PresentationErrorType::NO_AVAILABLE_SCREENS,
- error_mojo->error_type);
- EXPECT_EQ(message, error_mojo->message);
-}
-
-} // namespace content
« no previous file with comments | « content/browser/presentation/presentation_type_converters.cc ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698