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

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

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 "content/common/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 using webkit::WebPluginInfo;
12 using webkit::WebPluginMimeType;
13
14 namespace content { 11 namespace content {
15 12
16 namespace { 13 namespace {
17 14
18 base::FilePath::CharType kFooPath[] = FILE_PATH_LITERAL("/plugins/foo.plugin"); 15 base::FilePath::CharType kFooPath[] = FILE_PATH_LITERAL("/plugins/foo.plugin");
19 base::FilePath::CharType kBarPath[] = FILE_PATH_LITERAL("/plugins/bar.plugin"); 16 base::FilePath::CharType kBarPath[] = FILE_PATH_LITERAL("/plugins/bar.plugin");
20 const char* kFooName = "Foo Plugin"; 17 const char* kFooName = "Foo Plugin";
21 18
22 bool Equals(const WebPluginInfo& a, const WebPluginInfo& b) { 19 bool Equals(const WebPluginInfo& a, const WebPluginInfo& b) {
23 return (a.name == b.name && 20 return (a.name == b.name &&
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 "IcedTea-Web Plugin " 187 "IcedTea-Web Plugin "
191 "(using IcedTea-Web 1.2 (1.2-2ubuntu0.10.04.2))", 188 "(using IcedTea-Web 1.2 (1.2-2ubuntu0.10.04.2))",
192 &info); 189 &info);
193 EXPECT_EQ(ASCIIToUTF16("1.2"), info.version); 190 EXPECT_EQ(ASCIIToUTF16("1.2"), info.version);
194 } 191 }
195 192
196 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 193 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
197 194
198 195
199 } // namespace content 196 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698