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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
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 // MediaGalleriesPrivate gallery watch API browser tests. 5 // MediaGalleriesPrivate gallery watch API browser tests.
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_path_watcher.h" 8 #include "base/files/file_path_watcher.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class MediaGalleriesPrivateGalleryWatchApiTest : public ExtensionApiTest { 70 class MediaGalleriesPrivateGalleryWatchApiTest : public ExtensionApiTest {
71 public: 71 public:
72 MediaGalleriesPrivateGalleryWatchApiTest() 72 MediaGalleriesPrivateGalleryWatchApiTest()
73 : extension_(NULL), 73 : extension_(NULL),
74 background_host_(NULL) { 74 background_host_(NULL) {
75 } 75 }
76 ~MediaGalleriesPrivateGalleryWatchApiTest() override {} 76 ~MediaGalleriesPrivateGalleryWatchApiTest() override {}
77 77
78 protected: 78 protected:
79 // ExtensionApiTest overrides. 79 // ExtensionApiTest overrides.
80 void SetUpCommandLine(CommandLine* command_line) override { 80 void SetUpCommandLine(base::CommandLine* command_line) override {
81 ExtensionApiTest::SetUpCommandLine(command_line); 81 ExtensionApiTest::SetUpCommandLine(command_line);
82 command_line->AppendSwitchASCII( 82 command_line->AppendSwitchASCII(
83 extensions::switches::kWhitelistedExtensionID, 83 extensions::switches::kWhitelistedExtensionID,
84 kTestExtensionId); 84 kTestExtensionId);
85 } 85 }
86 void SetUpOnMainThread() override { 86 void SetUpOnMainThread() override {
87 ExtensionApiTest::SetUpOnMainThread(); 87 ExtensionApiTest::SetUpOnMainThread();
88 ensure_media_directories_exists_.reset(new EnsureMediaDirectoriesExists); 88 ensure_media_directories_exists_.reset(new EnsureMediaDirectoriesExists);
89 extension_ = LoadExtension(test_data_dir_.AppendASCII(kTestExtensionPath)); 89 extension_ = LoadExtension(test_data_dir_.AppendASCII(kTestExtensionPath));
90 GetBackgroundHostForTestExtension(); 90 GetBackgroundHostForTestExtension();
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Remove all gallery watchers. 333 // Remove all gallery watchers.
334 ExecuteCmdAndCheckReply(kRemoveAllGalleryWatchCmd, kRemoveAllGalleryWatchOK); 334 ExecuteCmdAndCheckReply(kRemoveAllGalleryWatchCmd, kRemoveAllGalleryWatchOK);
335 335
336 // Gallery watchers removed. chrome.mediaGalleriesPrivate.getAllGalleryWatch 336 // Gallery watchers removed. chrome.mediaGalleriesPrivate.getAllGalleryWatch
337 // should return an empty list. 337 // should return an empty list.
338 ExtensionTestMessageListener final_get_all_check_finished( 338 ExtensionTestMessageListener final_get_all_check_finished(
339 kNoGalleryWatchesInstalled, false /* no reply */); 339 kNoGalleryWatchesInstalled, false /* no reply */);
340 ExecuteCmdAndCheckReply(kGetAllWatchedGalleryIdsCmd, kGetAllGalleryWatchOK); 340 ExecuteCmdAndCheckReply(kGetAllWatchedGalleryIdsCmd, kGetAllGalleryWatchOK);
341 EXPECT_TRUE(final_get_all_check_finished.WaitUntilSatisfied()); 341 EXPECT_TRUE(final_get_all_check_finished.WaitUntilSatisfied());
342 } 342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698