Lines Matching refs:nodes
379 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
381 EXPECT_EQ(3u, nodes.size()); in TEST_F()
382 EXPECT_EQ("CPUCluster0MinFreq", nodes[0]->GetName()); in TEST_F()
383 EXPECT_EQ("CPUCluster1MinFreq", nodes[1]->GetName()); in TEST_F()
384 EXPECT_EQ(files_[0 + 2]->path, nodes[0]->GetPath()); in TEST_F()
385 EXPECT_EQ(files_[1 + 2]->path, nodes[1]->GetPath()); in TEST_F()
386 EXPECT_EQ("1512000", nodes[0]->GetValues()[0]); in TEST_F()
387 EXPECT_EQ("1134000", nodes[0]->GetValues()[1]); in TEST_F()
388 EXPECT_EQ("384000", nodes[0]->GetValues()[2]); in TEST_F()
389 EXPECT_EQ("1512000", nodes[1]->GetValues()[0]); in TEST_F()
390 EXPECT_EQ("1134000", nodes[1]->GetValues()[1]); in TEST_F()
391 EXPECT_EQ("384000", nodes[1]->GetValues()[2]); in TEST_F()
392 EXPECT_EQ(2u, nodes[0]->GetDefaultIndex()); in TEST_F()
393 EXPECT_EQ(2u, nodes[1]->GetDefaultIndex()); in TEST_F()
394 EXPECT_TRUE(nodes[0]->GetResetOnInit()); in TEST_F()
395 EXPECT_FALSE(nodes[1]->GetResetOnInit()); in TEST_F()
397 EXPECT_FALSE(reinterpret_cast<FileNode*>(nodes[0].get())->GetHoldFd()); in TEST_F()
398 EXPECT_TRUE(reinterpret_cast<FileNode*>(nodes[1].get())->GetHoldFd()); in TEST_F()
399 EXPECT_EQ("ModeProperty", nodes[2]->GetName()); in TEST_F()
400 EXPECT_EQ(prop_, nodes[2]->GetPath()); in TEST_F()
401 EXPECT_EQ("HIGH", nodes[2]->GetValues()[0]); in TEST_F()
402 EXPECT_EQ("LOW", nodes[2]->GetValues()[1]); in TEST_F()
403 EXPECT_EQ("NONE", nodes[2]->GetValues()[2]); in TEST_F()
404 EXPECT_EQ(2u, nodes[2]->GetDefaultIndex()); in TEST_F()
405 EXPECT_FALSE(nodes[2]->GetResetOnInit()); in TEST_F()
413 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
415 EXPECT_EQ(0u, nodes.size()); in TEST_F()
422 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
424 EXPECT_EQ(0u, nodes.size()); in TEST_F()
432 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
434 EXPECT_EQ(0u, nodes.size()); in TEST_F()
442 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
444 EXPECT_EQ(0u, nodes.size()); in TEST_F()
452 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
454 EXPECT_EQ(0u, nodes.size()); in TEST_F()
462 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
464 EXPECT_EQ(0u, nodes.size()); in TEST_F()
472 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
474 EXPECT_EQ(3u, nodes.size()); in TEST_F()
475 EXPECT_EQ("CPUCluster0MinFreq", nodes[0]->GetName()); in TEST_F()
476 EXPECT_EQ("CPUCluster1MinFreq", nodes[1]->GetName()); in TEST_F()
477 EXPECT_EQ(files_[0 + 2]->path, nodes[0]->GetPath()); in TEST_F()
478 EXPECT_EQ(files_[1 + 2]->path, nodes[1]->GetPath()); in TEST_F()
479 EXPECT_EQ("1512000", nodes[0]->GetValues()[0]); in TEST_F()
480 EXPECT_EQ("1134000", nodes[0]->GetValues()[1]); in TEST_F()
481 EXPECT_EQ("384000", nodes[0]->GetValues()[2]); in TEST_F()
482 EXPECT_EQ("1512000", nodes[1]->GetValues()[0]); in TEST_F()
483 EXPECT_EQ("1134000", nodes[1]->GetValues()[1]); in TEST_F()
484 EXPECT_EQ("384000", nodes[1]->GetValues()[2]); in TEST_F()
485 EXPECT_EQ(2u, nodes[0]->GetDefaultIndex()); in TEST_F()
486 EXPECT_EQ(2u, nodes[1]->GetDefaultIndex()); in TEST_F()
487 EXPECT_TRUE(nodes[0]->GetResetOnInit()); in TEST_F()
488 EXPECT_FALSE(nodes[1]->GetResetOnInit()); in TEST_F()
490 EXPECT_FALSE(reinterpret_cast<FileNode*>(nodes[0].get())->GetHoldFd()); in TEST_F()
491 EXPECT_TRUE(reinterpret_cast<FileNode*>(nodes[1].get())->GetHoldFd()); in TEST_F()
492 EXPECT_EQ("ModeProperty", nodes[2]->GetName()); in TEST_F()
493 EXPECT_EQ(prop_, nodes[2]->GetPath()); in TEST_F()
494 EXPECT_EQ("HIGH", nodes[2]->GetValues()[0]); in TEST_F()
495 EXPECT_EQ("", nodes[2]->GetValues()[1]); in TEST_F()
496 EXPECT_EQ("NONE", nodes[2]->GetValues()[2]); in TEST_F()
497 EXPECT_EQ(2u, nodes[2]->GetDefaultIndex()); in TEST_F()
498 EXPECT_FALSE(nodes[2]->GetResetOnInit()); in TEST_F()
503 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
505 EXPECT_EQ(0u, nodes.size()); in TEST_F()
506 nodes = HintManager::ParseNodes( in TEST_F()
509 EXPECT_EQ(0u, nodes.size()); in TEST_F()
514 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
516 std::unordered_map<std::string, Hint> actions = HintManager::ParseActions(json_doc_, nodes); in TEST_F()
565 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
567 EXPECT_EQ(3u, nodes.size()); in TEST_F()
568 auto actions = HintManager::ParseActions(json_doc_, nodes); in TEST_F()
577 auto nodes = HintManager::ParseNodes(json_doc_); in TEST_F() local
578 EXPECT_EQ(3u, nodes.size()); in TEST_F()
579 auto actions = HintManager::ParseActions(json_doc_, nodes); in TEST_F()
585 std::vector<std::unique_ptr<Node>> nodes = in TEST_F() local
587 auto actions = HintManager::ParseActions("invalid json", nodes); in TEST_F()
592 nodes); in TEST_F()