Home | History | Annotate | Download | only in pepper

Lines Matching refs:GeneratePluginId

36   std::string GeneratePluginId(const std::string& mime_type) {
37 return host_->GeneratePluginId(mime_type);
46 TEST_F(PepperFileSystemBrowserHostTest, GeneratePluginId) {
48 EXPECT_TRUE(GeneratePluginId("*").empty());
49 EXPECT_TRUE(GeneratePluginId("*/*").empty());
52 EXPECT_TRUE(GeneratePluginId(".").empty());
53 EXPECT_TRUE(GeneratePluginId("..").empty());
54 EXPECT_TRUE(GeneratePluginId("application").empty());
55 EXPECT_TRUE(GeneratePluginId("application/mime/type").empty());
59 EXPECT_TRUE(GeneratePluginId("/mime").empty());
60 EXPECT_TRUE(GeneratePluginId("./mime").empty());
61 EXPECT_TRUE(GeneratePluginId("../mime").empty());
62 EXPECT_TRUE(GeneratePluginId("app/mime").empty());
65 EXPECT_TRUE(GeneratePluginId("application/mime+type").empty());
66 EXPECT_TRUE(GeneratePluginId("application/mime:type").empty());
67 EXPECT_TRUE(GeneratePluginId("application/mime;type").empty());
70 EXPECT_EQ("application_mime", GeneratePluginId("application/mime"));
71 EXPECT_EQ("x-app_mime", GeneratePluginId("x-app/mime"));
72 EXPECT_EQ("application_mime.type", GeneratePluginId("application/mime.type"));
73 EXPECT_EQ("application_mime_type", GeneratePluginId("application/mime_type"));
74 EXPECT_EQ("application_mime-type", GeneratePluginId("application/mime-type"));
75 EXPECT_EQ("application_..", GeneratePluginId("application/.."));