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

Side by Side Diff: content/common/plugin_list_unittest.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 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
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 "webkit/plugins/npapi/plugin_list.h" 5 #include "content/common/plugin_list.h"
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace webkit { 11 using webkit::WebPluginInfo;
12 namespace npapi { 12 using webkit::WebPluginMimeType;
13
14 namespace content {
13 15
14 namespace { 16 namespace {
15 17
16 bool Equals(const WebPluginInfo& a, const WebPluginInfo& b) { 18 bool Equals(const WebPluginInfo& a, const WebPluginInfo& b) {
17 return (a.name == b.name && 19 return (a.name == b.name &&
18 a.path == b.path && 20 a.path == b.path &&
19 a.version == b.version && 21 a.version == b.version &&
20 a.desc == b.desc); 22 a.desc == b.desc);
21 } 23 }
22 24
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PluginList::ExtractVersionString( 194 PluginList::ExtractVersionString(
193 "IcedTea-Web Plugin " 195 "IcedTea-Web Plugin "
194 "(using IcedTea-Web 1.2 (1.2-2ubuntu0.10.04.2))", 196 "(using IcedTea-Web 1.2 (1.2-2ubuntu0.10.04.2))",
195 &info); 197 &info);
196 EXPECT_EQ(ASCIIToUTF16("1.2"), info.version); 198 EXPECT_EQ(ASCIIToUTF16("1.2"), info.version);
197 } 199 }
198 200
199 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 201 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
200 202
201 203
202 } // namespace npapi 204 } // namespace content
203 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698