Lines Matching defs:operation

20 #include "operation.h"
68 std::shared_ptr<Operation> operation = operationbuilder_->Build();
69 EXPECT_STREQ(value.c_str(), operation->GetAbilityName().c_str());
83 std::shared_ptr<Operation> operation = operationbuilder_->Build();
85 EXPECT_STREQ(value.c_str(), operation->GetAbilityName().c_str());
97 std::shared_ptr<Operation> operation = operationbuilder_->Build();
98 EXPECT_STREQ(value.c_str(), operation->GetBundleName().c_str());
110 std::shared_ptr<Operation> operation = operationbuilder_->Build();
111 EXPECT_STREQ(value.c_str(), operation->GetBundleName().c_str());
123 std::shared_ptr<Operation> operation = operationbuilder_->Build();
124 EXPECT_STREQ(value.c_str(), operation->GetDeviceId().c_str());
136 std::shared_ptr<Operation> operation = operationbuilder_->Build();
137 EXPECT_STREQ(value.c_str(), operation->GetDeviceId().c_str());
149 std::shared_ptr<Operation> operation = operationbuilder_->Build();
150 EXPECT_STREQ(value.c_str(), operation->GetAction().c_str());
162 std::shared_ptr<Operation> operation = operationbuilder_->Build();
163 EXPECT_STREQ(value.c_str(), operation->GetAction().c_str());
176 std::shared_ptr<Operation> operation = operationbuilder_->Build();
178 std::vector<std::string> revValue = operation->GetEntities();
181 EXPECT_STREQ(value.at(0).c_str(), operation->GetEntities().at(0).c_str());
196 std::shared_ptr<Operation> operation = operationbuilder_->Build();
197 EXPECT_EQ(true, operation->GetEntities().size() == 0);
209 std::shared_ptr<Operation> operation = operationbuilder_->Build();
210 EXPECT_EQ(value, operation->GetFlags());
222 std::shared_ptr<Operation> operation = operationbuilder_->Build();
223 EXPECT_EQ(value, operation->GetFlags());
236 std::shared_ptr<Operation> operation = operationbuilder_->Build();
238 EXPECT_EQ(uri, operation->GetUri());
251 std::shared_ptr<Operation> operation = operationbuilder_->Build();
252 EXPECT_EQ(uri, operation->GetUri());
273 std::shared_ptr<Operation> operation = operationbuilder_->Build();
275 EXPECT_EQ(uri, operation->GetUri());
276 EXPECT_STREQ(value.c_str(), operation->GetAction().c_str());
278 std::vector<std::string> revValue = operation->GetEntities();
281 EXPECT_STREQ(columns.at(0).c_str(), operation->GetEntities().at(0).c_str());
285 EXPECT_STREQ(value.c_str(), operation->GetDeviceId().c_str());
286 EXPECT_STREQ(value.c_str(), operation->GetBundleName().c_str());
287 EXPECT_STREQ(value.c_str(), operation->GetAbilityName().c_str());
308 std::shared_ptr<Operation> operation = operationbuilder_->Build();
310 operation->Marshalling(in);
312 Operation *pOperation = operation->Unmarshalling(in);
314 EXPECT_EQ(true, *pOperation == *(operation.get()));
339 std::shared_ptr<Operation> operation = operationbuilder_->Build();
340 operation_ = *(operation.get());
342 EXPECT_EQ(true, operation_ == *(operation.get()));
353 std::shared_ptr<Operation> operation = operationbuilder_->Build();
355 operation->entities_.push_back("a");
356 operation->entities_.push_back("b");
357 operation->DumpInfo(level);
358 EXPECT_EQ(true, operation->GetEntities().size() == 2);